]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ecp.h
Adding 'extern "C" {' and '}' declarations to exported header files
[ppp.git] / pppd / ecp.h
index 162dace7e07915c62cc39198eb56be2b146dfe03..975d79b876a7c8ca71d72340d717a7e1acb6d5ca 100644 (file)
  *
  * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $
  */
+#ifndef PPP_ECP_H
+#define PPP_ECP_H
+
 #include "pppdconf.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef PPP_ECP
+#define PPP_ECP 0x8053
+#endif
+
+
 typedef struct ecp_options {
     bool required;             /* Is ECP required? */
     unsigned enctype;          /* Encryption type */
@@ -44,3 +56,9 @@ extern ecp_options ecp_allowoptions[];
 extern ecp_options ecp_hisoptions[];
 
 extern struct protent ecp_protent;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // PPP_ECP_H