Skip to content

Commit

Permalink
make header files includable by c++ implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
frimpler committed Apr 16, 2018
1 parent addc351 commit 8ba207a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/sysrepo.h
Expand Up @@ -59,6 +59,9 @@
#include <sys/types.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

////////////////////////////////////////////////////////////////////////////////
// Common typedefs and API
Expand Down Expand Up @@ -2001,4 +2004,8 @@ void sr_free_trees(sr_node_t *trees, size_t count);

/**@} cl */

#ifdef __cplusplus
}
#endif

#endif /* SYSREPO_H_ */
8 changes: 8 additions & 0 deletions inc/sysrepo/plugins.h
Expand Up @@ -30,6 +30,10 @@

#include <sysrepo.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @defgroup plugin_utils Plugin Utilities
* @{
Expand Down Expand Up @@ -128,4 +132,8 @@ extern volatile uint8_t sr_ll_syslog; /**< Holds current level of syslog d
SRP_LOG__SYSLOG(LL, MSG, __VA_ARGS__) \
} while(0)

#ifdef __cplusplus
}
#endif

#endif /* SYSREPO_PLUGINS_H_ */
8 changes: 8 additions & 0 deletions inc/sysrepo/trees.h
Expand Up @@ -25,6 +25,10 @@

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @defgroup trees Tree Manipulation Utilities
* @{
Expand Down Expand Up @@ -215,4 +219,8 @@ sr_node_t *sr_node_get_parent(sr_session_ctx_t *session, sr_node_t *node);

/**@} trees */

#ifdef __cplusplus
}
#endif

#endif /* SYSREPO_TREES_H_ */
8 changes: 8 additions & 0 deletions inc/sysrepo/values.h
Expand Up @@ -25,6 +25,10 @@

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @defgroup values Value Manipulation Utilities
* @{
Expand Down Expand Up @@ -185,4 +189,8 @@ int sr_val_to_buff(const sr_val_t *value, char buffer[], size_t size);

/**@} values */

#ifdef __cplusplus
}
#endif

#endif /* SYSREPO_VALUES_H_ */
8 changes: 8 additions & 0 deletions inc/sysrepo/xpath.h
Expand Up @@ -24,6 +24,10 @@

#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @defgroup xpath_utils XPath Processing Utilities
* @{
Expand Down Expand Up @@ -220,5 +224,9 @@ void sr_xpath_recover(sr_xpath_ctx_t *state);

/**@} xpath_utils */

#ifdef __cplusplus
}
#endif

#endif /* SYSREPO_XPATH_H_ */

0 comments on commit 8ba207a

Please sign in to comment.