typedef void (*forb_skel_func)(FORB_CDR_Codec *cin,
FORB_CDR_Codec *cout,
- struct forb_object *obj,
+ struct _forb_object *obj,
struct forb_env *env);
#include <forb/executor.h>
#include <forb/object_type.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Incomplete types - declared in forb-internal.h */
struct forb_interface;
const char *
forb_strerror(CORBA_Environment *env);
+#ifdef __cplusplus
+} /* extern "C"*/
+#endif
+
#endif
GAVL_CUST_NODE_INT_IMP(forb_objects_nolock /* cust_prefix */,
forb_t /* cust_root_t */,
- struct forb_object /* cust_item_t */,
+ struct _forb_object /* cust_item_t */,
forb_object_key /* cust_key_t */,
objects /* cust_root_node */,
node /* cust_item_node */,
static void
forb_object_release_real(forb_ref_t *ref)
{
- forb_object obj = container_of(ref, struct forb_object, ref);
+ forb_object obj = container_of(ref, struct _forb_object, ref);
if (obj->orb) {
forb_t *forb = forb_object_to_forb(obj);
* - if the method needs to store the object reference, it must call
* forb_object_duplicate() and store the duplicate.
*/
-struct forb_object {
+struct _forb_object {
/** @name Fields valid for both local and remote object references */
/*@{*/
* ordered by object keys. */
GAVL_CUST_NODE_INT_DEC(forb_objects_nolock /* cust_prefix */,
forb_t /* cust_root_t */,
- struct forb_object /* cust_item_t */,
+ struct _forb_object /* cust_item_t */,
forb_object_key /* cust_key_t */,
objects /* cust_root_node */,
node /* cust_item_node */,
#include <stdlib.h>
#include <forb/types.h>
-struct forb_object;
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+struct _forb_object;
/** Opaque object reference type. */
-typedef struct forb_object *forb_object;
+typedef struct _forb_object *forb_object;
typedef forb_object CORBA_Object;
#if !defined(_forb_orb_defined)
#define CORBA_malloc(size) forb_malloc(size)
#define CORBA_free(ptr) forb_free(ptr)
+#ifdef __cplusplus
+} /* extern "C"*/
+#endif
#endif
#include <string.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Universally unique ID type.
*/
char *forb_uuid_to_string(char *dest, const forb_uuid_t *uuid, size_t n);
forb_uuid_t *forb_uuid_from_string(forb_uuid_t *dest, const char *string);
+#ifdef __cplusplus
+} /* extern "C"*/
+#endif
+
#endif