matecorba2-small

matecorba2-small

Synopsis

                    MateCORBA_IModule;
const char *        MateCORBA_get_safe_tmp                  (void);
gpointer            MateCORBA_small_alloc                   (CORBA_TypeCode tc);
gpointer            MateCORBA_small_allocbuf                (CORBA_TypeCode tc,
                                                         CORBA_unsigned_long length);
void                MateCORBA_small_freekids                (CORBA_TypeCode tc,
                                                         gpointer p,
                                                         gpointer d);
gpointer            MateCORBA_sequence_alloc                (CORBA_TypeCode sequence_tc,
                                                         CORBA_unsigned_long length);
void                MateCORBA_sequence_append               (gpointer sequence,
                                                         gconstpointer element);
void                MateCORBA_sequence_set_size             (gpointer sequence,
                                                         CORBA_unsigned_long length);
#define             MateCORBA_sequence_index                (sequence,
                                                         idx)
void                MateCORBA_sequence_concat               (gpointer sequence,
                                                         gconstpointer append);
enum                MateCORBAConnectionStatus;
gpointer            MateCORBA_small_get_servant             (CORBA_Object obj);
MateCORBAConnectionStatus  MateCORBA_small_get_connection_status
                                                        (CORBA_Object obj);
MateCORBAConnectionStatus  MateCORBA_small_listen_for_broken    (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);
MateCORBAConnectionStatus  MateCORBA_small_unlisten_for_broken_full
                                                        (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);
MateCORBAConnectionStatus  MateCORBA_small_unlisten_for_broken  (CORBA_Object obj,
                                                         GCallback fn);
                    MateCORBAConnection;
MateCORBAConnection *   MateCORBA_small_get_connection          (CORBA_Object obj);
MateCORBAConnection *   MateCORBA_small_get_connection_ref      (CORBA_Object obj);
void                MateCORBA_small_connection_unref        (MateCORBAConnection *cnx);
void                MateCORBA_connection_set_max_buffer     (MateCORBAConnection *cnx,
                                                         gulong max_buffer_bytes);
MateCORBA_IInterface *  MateCORBA_small_get_iinterface          (CORBA_Object opt_object,
                                                         const CORBA_char *repo_id,
                                                         CORBA_Environment *ev);
extern              int     MateCORBA_small_flags;
CORBA_sequence_MateCORBA_IInterface * MateCORBA_small_get_iinterfaces
                                                        (const char *name);
                    MateCORBAAsyncQueueEntry;
void                MateCORBA_small_invoke_stub_n           (CORBA_Object object,
                                                         MateCORBA_IMethods *methods,
                                                         glong index,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
CORBA_char *        MateCORBA_small_get_type_id             (CORBA_Object object,
                                                         CORBA_Environment *ev);
void                (*MateCORBAAsyncInvokeFunc)             (CORBA_Object object,
                                                         MateCORBA_IMethod *m_data,
                                                         MateCORBAAsyncQueueEntry *aqe,
                                                         gpointer user_data,
                                                         CORBA_Environment *ev);
void                MateCORBA_small_demarshal_async         (MateCORBAAsyncQueueEntry *aqe,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Environment *ev);
void                MateCORBA_small_invoke_stub             (CORBA_Object object,
                                                         MateCORBA_IMethod *m_data,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
void                MateCORBA_small_invoke_async            (CORBA_Object obj,
                                                         MateCORBA_IMethod *m_data,
                                                         MateCORBAAsyncInvokeFunc fn,
                                                         gpointer user_data,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);
#define             MATECORBA_SMALL_FAST_LOCALS
#define             MATECORBA_SMALL_FORCE_GENERIC_MARSHAL
CORBA_sequence_CORBA_TypeCode * MateCORBA_small_get_types   (const char *name);
gboolean            MateCORBA_small_load_typelib            (const char *libname);

Description

Details

MateCORBA_IModule

typedef struct {
	CORBA_unsigned_long           version;
	MateCORBA_IInterface            **interfaces;
	CORBA_sequence_CORBA_TypeCode types;
} MateCORBA_IModule;


MateCORBA_get_safe_tmp ()

const char *        MateCORBA_get_safe_tmp                  (void);

Returns :


MateCORBA_small_alloc ()

gpointer            MateCORBA_small_alloc                   (CORBA_TypeCode tc);

tc :

Returns :


MateCORBA_small_allocbuf ()

gpointer            MateCORBA_small_allocbuf                (CORBA_TypeCode tc,
                                                         CORBA_unsigned_long length);

tc :

length :

Returns :


MateCORBA_small_freekids ()

void                MateCORBA_small_freekids                (CORBA_TypeCode tc,
                                                         gpointer p,
                                                         gpointer d);

tc :

p :

d :


MateCORBA_sequence_alloc ()

gpointer            MateCORBA_sequence_alloc                (CORBA_TypeCode sequence_tc,
                                                         CORBA_unsigned_long length);

sequence_tc :

length :

Returns :


MateCORBA_sequence_append ()

void                MateCORBA_sequence_append               (gpointer sequence,
                                                         gconstpointer element);

sequence :

element :


MateCORBA_sequence_set_size ()

void                MateCORBA_sequence_set_size             (gpointer sequence,
                                                         CORBA_unsigned_long length);

sequence :

length :


MateCORBA_sequence_index()

#define        MateCORBA_sequence_index(sequence,idx) (sequence)->_buffer[(idx)]

sequence :

idx :


MateCORBA_sequence_concat ()

void                MateCORBA_sequence_concat               (gpointer sequence,
                                                         gconstpointer append);

sequence :

append :


enum MateCORBAConnectionStatus

typedef enum {
	MATECORBA_CONNECTION_CONNECTED,
	MATECORBA_CONNECTION_CONNECTING,
	MATECORBA_CONNECTION_DISCONNECTED,
	MATECORBA_CONNECTION_IN_PROC
} MateCORBAConnectionStatus;


MateCORBA_small_get_servant ()

gpointer            MateCORBA_small_get_servant             (CORBA_Object obj);

obj :

Returns :


MateCORBA_small_get_connection_status ()

MateCORBAConnectionStatus  MateCORBA_small_get_connection_status
                                                        (CORBA_Object obj);

obj :

Returns :


MateCORBA_small_listen_for_broken ()

MateCORBAConnectionStatus  MateCORBA_small_listen_for_broken    (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);

obj :

fn :

user_data :

Returns :


MateCORBA_small_unlisten_for_broken_full ()

MateCORBAConnectionStatus  MateCORBA_small_unlisten_for_broken_full
                                                        (CORBA_Object obj,
                                                         GCallback fn,
                                                         gpointer user_data);

obj :

fn :

user_data :

Returns :


MateCORBA_small_unlisten_for_broken ()

MateCORBAConnectionStatus  MateCORBA_small_unlisten_for_broken  (CORBA_Object obj,
                                                         GCallback fn);

obj :

fn :

Returns :


MateCORBAConnection

typedef struct _MateCORBAConnection MateCORBAConnection;


MateCORBA_small_get_connection ()

MateCORBAConnection *   MateCORBA_small_get_connection          (CORBA_Object obj);

obj :

Returns :


MateCORBA_small_get_connection_ref ()

MateCORBAConnection *   MateCORBA_small_get_connection_ref      (CORBA_Object obj);

obj :

Returns :


MateCORBA_small_connection_unref ()

void                MateCORBA_small_connection_unref        (MateCORBAConnection *cnx);

cnx :


MateCORBA_connection_set_max_buffer ()

void                MateCORBA_connection_set_max_buffer     (MateCORBAConnection *cnx,
                                                         gulong max_buffer_bytes);

cnx :

max_buffer_bytes :


MateCORBA_small_get_iinterface ()

MateCORBA_IInterface *  MateCORBA_small_get_iinterface          (CORBA_Object opt_object,
                                                         const CORBA_char *repo_id,
                                                         CORBA_Environment *ev);

opt_object :

repo_id :

ev :

Returns :


MateCORBA_small_flags

extern int     MateCORBA_small_flags;


MateCORBA_small_get_iinterfaces ()

CORBA_sequence_MateCORBA_IInterface * MateCORBA_small_get_iinterfaces
                                                        (const char *name);

name :

Returns :


MateCORBAAsyncQueueEntry

typedef struct _MateCORBAAsyncQueueEntry MateCORBAAsyncQueueEntry;


MateCORBA_small_invoke_stub_n ()

void                MateCORBA_small_invoke_stub_n           (CORBA_Object object,
                                                         MateCORBA_IMethods *methods,
                                                         glong index,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

object :

methods :

index :

ret :

args :

ctx :

ev :


MateCORBA_small_get_type_id ()

CORBA_char *        MateCORBA_small_get_type_id             (CORBA_Object object,
                                                         CORBA_Environment *ev);

object :

ev :

Returns :


MateCORBAAsyncInvokeFunc ()

void                (*MateCORBAAsyncInvokeFunc)             (CORBA_Object object,
                                                         MateCORBA_IMethod *m_data,
                                                         MateCORBAAsyncQueueEntry *aqe,
                                                         gpointer user_data,
                                                         CORBA_Environment *ev);

object :

m_data :

aqe :

user_data :

ev :


MateCORBA_small_demarshal_async ()

void                MateCORBA_small_demarshal_async         (MateCORBAAsyncQueueEntry *aqe,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Environment *ev);

aqe :

ret :

args :

ev :


MateCORBA_small_invoke_stub ()

void                MateCORBA_small_invoke_stub             (CORBA_Object object,
                                                         MateCORBA_IMethod *m_data,
                                                         gpointer ret,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

object :

m_data :

ret :

args :

ctx :

ev :


MateCORBA_small_invoke_async ()

void                MateCORBA_small_invoke_async            (CORBA_Object obj,
                                                         MateCORBA_IMethod *m_data,
                                                         MateCORBAAsyncInvokeFunc fn,
                                                         gpointer user_data,
                                                         gpointer *args,
                                                         CORBA_Context ctx,
                                                         CORBA_Environment *ev);

This method is used to invoke a remote (or local) method asynchronously. fn is called back on return - either with an empty CORBA_Environment indicating success, or with the error.


MATECORBA_SMALL_FAST_LOCALS

#define MATECORBA_SMALL_FAST_LOCALS           1


MATECORBA_SMALL_FORCE_GENERIC_MARSHAL

#define MATECORBA_SMALL_FORCE_GENERIC_MARSHAL 2


MateCORBA_small_get_types ()

CORBA_sequence_CORBA_TypeCode * MateCORBA_small_get_types   (const char *name);

name :

Returns :


MateCORBA_small_load_typelib ()

gboolean            MateCORBA_small_load_typelib            (const char *libname);

This method has security issues if you do not use an absolute path in libname. The environment variables MATECORBA_TYPELIB_PATH and MATE2_PATH are used to scan for type libraries.

libname :

the name of the type library to load

Returns :

FALSE if load failed.