Skip to content

Commit

Permalink
Added C linkage to the exported functions
Browse files Browse the repository at this point in the history
Change-Id: I2f634d0aeae3d7c9d683edd9b3a282fb16dac16d
Reviewed-on: http://review.northscale.com/1515
Tested-by: Dustin Sallings <dustin@spy.net>
Reviewed-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information
trondn authored and dustin committed Aug 3, 2010
1 parent ec9d1df commit 515cc40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions alarm.h
Expand Up @@ -5,6 +5,10 @@
#ifndef LIBCONFLATE_ALARM_H
#define LIBCONFLATE_ALARM_H

#ifdef __cplusplus
extern "C" {
#endif

#define ALARM_INITIALIZER() { 1,1,1,1,0,0,"something"}
#define ALARM_QUEUE_INIT(queue) { queue, 0, 0, 0, PTHREAD_MUTEX_INITIALIZER, \
PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER }
Expand Down Expand Up @@ -102,6 +106,10 @@ alarm_queue_t *init_alarmqueue(void);
*/
void destroy_alarmqueue(alarm_queue_t *queue);

#ifdef __cplusplus
}
#endif

/**
* @}
*/
Expand Down
6 changes: 6 additions & 0 deletions conflate.h
Expand Up @@ -5,6 +5,9 @@
#include <sys/types.h>
#include <pthread.h>

#ifdef __cpluscplus
extern "C" {
#endif

/*! \mainpage libconflate
*
Expand Down Expand Up @@ -526,5 +529,8 @@ char *conflate_get_private(conflate_handle_t *handle,
/**
* @}
*/
#ifdef __cplusplus
}
#endif

#endif /* CONFLATE_H */

0 comments on commit 515cc40

Please sign in to comment.