Make this c header file c++ compatible.
This commit is contained in:
@@ -88,6 +88,10 @@
|
|||||||
#define MAX_HEADER (8)
|
#define MAX_HEADER (8)
|
||||||
#define MAX_MPDU (MAX_HEADER+MAX_PDU)
|
#define MAX_MPDU (MAX_HEADER+MAX_PDU)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
int datalink_send_pdu(
|
int datalink_send_pdu(
|
||||||
BACNET_ADDRESS * dest,
|
BACNET_ADDRESS * dest,
|
||||||
BACNET_NPDU_DATA * npdu_data,
|
BACNET_NPDU_DATA * npdu_data,
|
||||||
@@ -108,6 +112,10 @@ extern void datalink_set_interface(
|
|||||||
char *ifname);
|
char *ifname);
|
||||||
extern void datalink_set(
|
extern void datalink_set(
|
||||||
char *datalink_string);
|
char *datalink_string);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ typedef struct Keylist {
|
|||||||
} KEYLIST_TYPE;
|
} KEYLIST_TYPE;
|
||||||
typedef KEYLIST_TYPE *OS_Keylist;
|
typedef KEYLIST_TYPE *OS_Keylist;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/* returns head of the list or NULL on failure. */
|
/* returns head of the list or NULL on failure. */
|
||||||
OS_Keylist Keylist_Create(
|
OS_Keylist Keylist_Create(
|
||||||
void);
|
void);
|
||||||
@@ -109,4 +113,8 @@ KEY Keylist_Next_Empty_Key(
|
|||||||
int Keylist_Count(
|
int Keylist_Count(
|
||||||
OS_Keylist list);
|
OS_Keylist list);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -84,9 +84,4 @@ typedef struct object_device_t {
|
|||||||
uint32_t Database_Revision;
|
uint32_t Database_Revision;
|
||||||
} OBJECT_DEVICE_T;
|
} OBJECT_DEVICE_T;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user