X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsession.h;h=0047db6646ffe5042b7ab9389211e65db58d12c2;hp=bee8c4124eafb425fd85ec01c485a92ec6504ba0;hb=HEAD;hpb=e5b9a1061f126b36c558aea09fd76fd691ebf018;ds=sidebyside diff --git a/pppd/session.h b/pppd/session.h index bee8c41..b3c46b4 100644 --- a/pppd/session.h +++ b/pppd/session.h @@ -17,7 +17,7 @@ * 3. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by Paul Mackerras - * ". + * ". * * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY @@ -27,9 +27,14 @@ * 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_SESSION_H +#define PPP_SESSION_H -#ifndef __SESSION_H -#define __SESSION_H +#include "pppdconf.h" + +#ifdef __cplusplus +extern "C" { +#endif #define SESS_AUTH 1 /* Check User Authentication */ #define SESS_ACCT 2 /* Check Account Validity */ @@ -88,4 +93,8 @@ session_start(const int flags, const char* user, const char* passwd, const char* void session_end(const char* tty); +#ifdef __cplusplus +} #endif + +#endif // PPP_SESSION_H