X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsession.h;h=499549ce03f62120183fc5823c98e8337a08e4d3;hb=4f3e40659fcccce45068473ae94cfead18260c77;hp=0047db6646ffe5042b7ab9389211e65db58d12c2;hpb=ab4d4992050ec171e1c72d661a3457efc8e7c141;p=ppp.git diff --git a/pppd/session.h b/pppd/session.h index 0047db6..499549c 100644 --- a/pppd/session.h +++ b/pppd/session.h @@ -27,10 +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 + #include "pppdconf.h" -#ifndef __SESSION_H -#define __SESSION_H +#ifdef __cplusplus +extern "C" { +#endif #define SESS_AUTH 1 /* Check User Authentication */ #define SESS_ACCT 2 /* Check Account Validity */ @@ -89,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