public domain header, include protection

This commit is contained in:
Sean Middleditch 2009-03-12 23:27:35 -04:00
parent b1e452e85a
commit 6aef073203
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,11 @@
/*
* The author or authors of this code dedicate any and all copyright interest
* in this code to the public domain. We make this dedication for the benefit
* of the public at large and to the detriment of our heirs and successors. We
* intend this dedication to be an overt act of relinquishment in perpetuity of
* all present and future rights to this code under copyright law.
*/
#include "libtelnet.h"
/* initialize a telnet state tracker */

View File

@ -6,6 +6,9 @@
* all present and future rights to this code under copyright law.
*/
#if !defined(LIBTELNET_INCLUDE)
#define LIBTELNET 1
/* sub request buffer size increment (defualt 4K) */
#define LIBTELNET_BUFFER_SIZE (4 * 1024)
/* sub request buffer size (default 16K) */
@ -105,3 +108,5 @@ extern void libtelnet_send_data(struct libtelnet_t *telnet,
/* send sub-request */
extern void libtelnet_send_subrequest(struct libtelnet_t *telnet,
unsigned char type, unsigned char *buffer, size_t size, void *user_data);
#endif /* !defined(LIBTELNET_INCLUDE) */