X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmagic.h;h=68cbf9be24d395d92cb53610c0e410d6623df3f3;hb=4f3e40659fcccce45068473ae94cfead18260c77;hp=b864b7bc8ddb8b4dab7eb86eea7ab4d63d01920f;hpb=92c5612fdb77e83e49c524ae46110c129e13429e;p=ppp.git diff --git a/pppd/magic.h b/pppd/magic.h index b864b7b..68cbf9b 100644 --- a/pppd/magic.h +++ b/pppd/magic.h @@ -39,10 +39,23 @@ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef PPP_MAGIC_H +#define PPP_MAGIC_H + #include "pppdconf.h" +#ifdef __cplusplus +extern "C" { +#endif + void magic_init (void); /* Initialize the magic number generator */ u_int32_t magic (void); /* Returns the next magic number */ /* Fill buffer with random bytes */ void random_bytes (unsigned char *buf, int len); + +#ifdef __cplusplus +} +#endif + +#endif // PPP_MAGIC_H