|  |  |  | ORBit2 Reference Manual | 
|---|
| orbit2-smallorbit2-small — | 
            ORBit_IModule;
const char* ORBit_get_safe_tmp              (void);
gpointer    ORBit_small_alloc               (CORBA_TypeCode tc);
gpointer    ORBit_small_allocbuf            (CORBA_TypeCode tc,
                                             CORBA_unsigned_long length);
void        ORBit_small_freekids            (CORBA_TypeCode tc,
                                             gpointer p,
                                             gpointer d);
gpointer    ORBit_sequence_alloc            (CORBA_TypeCode sequence_tc,
                                             CORBA_unsigned_long length);
void        ORBit_sequence_append           (gpointer sequence,
                                             gconstpointer element);
void        ORBit_sequence_set_size         (gpointer sequence,
                                             CORBA_unsigned_long length);
#define     ORBit_sequence_index            (sequence,idx)
void        ORBit_sequence_concat           (gpointer sequence,
                                             gconstpointer append);
enum        ORBitConnectionStatus;
gpointer    ORBit_small_get_servant         (CORBA_Object obj);
ORBitConnectionStatus ORBit_small_get_connection_status
                                            (CORBA_Object obj);
ORBitConnectionStatus ORBit_small_listen_for_broken
                                            (CORBA_Object obj,
                                             GCallback fn,
                                             gpointer user_data);
ORBitConnectionStatus ORBit_small_unlisten_for_broken_full
                                            (CORBA_Object obj,
                                             GCallback fn,
                                             gpointer user_data);
ORBitConnectionStatus ORBit_small_unlisten_for_broken
                                            (CORBA_Object obj,
                                             GCallback fn);
            ORBitConnection;
ORBitConnection* ORBit_small_get_connection (CORBA_Object obj);
ORBitConnection* ORBit_small_get_connection_ref
                                            (CORBA_Object obj);
void        ORBit_small_connection_unref    (ORBitConnection *cnx);
void        ORBit_connection_set_max_buffer (ORBitConnection *cnx,
                                             gulong max_buffer_bytes);
ORBit_IInterface* ORBit_small_get_iinterface
                                            (CORBA_Object opt_object,
                                             const CORBA_char *repo_id,
                                             CORBA_Environment *ev);
extern      int     ORBit_small_flags;
CORBA_sequence_ORBit_IInterface* ORBit_small_get_iinterfaces
                                            (const char *name);
            ORBitAsyncQueueEntry;
void        ORBit_small_invoke_stub_n       (CORBA_Object object,
                                             ORBit_IMethods *methods,
                                             glong index,
                                             gpointer ret,
                                             gpointer *args,
                                             CORBA_Context ctx,
                                             CORBA_Environment *ev);
CORBA_char* ORBit_small_get_type_id         (CORBA_Object object,
                                             CORBA_Environment *ev);
void        (*ORBitAsyncInvokeFunc)         (CORBA_Object object,
                                             ORBit_IMethod *m_data,
                                             ORBitAsyncQueueEntry *aqe,
                                             gpointer user_data,
                                             CORBA_Environment *ev);
void        ORBit_small_demarshal_async     (ORBitAsyncQueueEntry *aqe,
                                             gpointer ret,
                                             gpointer *args,
                                             CORBA_Environment *ev);
void        ORBit_small_invoke_stub         (CORBA_Object object,
                                             ORBit_IMethod *m_data,
                                             gpointer ret,
                                             gpointer *args,
                                             CORBA_Context ctx,
                                             CORBA_Environment *ev);
void        ORBit_small_invoke_async        (CORBA_Object obj,
                                             ORBit_IMethod *m_data,
                                             ORBitAsyncInvokeFunc fn,
                                             gpointer user_data,
                                             gpointer *args,
                                             CORBA_Context ctx,
                                             CORBA_Environment *ev);
#define     ORBIT_SMALL_FAST_LOCALS
#define     ORBIT_SMALL_FORCE_GENERIC_MARSHAL
CORBA_sequence_CORBA_TypeCode* ORBit_small_get_types
                                            (const char *name);
gboolean    ORBit_small_load_typelib        (const char *libname);
typedef struct {
	CORBA_unsigned_long           version;
	ORBit_IInterface            **interfaces;
	CORBA_sequence_CORBA_TypeCode types;
} ORBit_IModule;
gpointer ORBit_small_allocbuf (CORBA_TypeCode tc, CORBA_unsigned_long length);
| tc : | |
| length : | |
| Returns : | 
void        ORBit_small_freekids            (CORBA_TypeCode tc,
                                             gpointer p,
                                             gpointer d);
| tc : | |
| p : | |
| d : | 
gpointer ORBit_sequence_alloc (CORBA_TypeCode sequence_tc, CORBA_unsigned_long length);
| sequence_tc : | |
| length : | |
| Returns : | 
void ORBit_sequence_append (gpointer sequence, gconstpointer element);
| sequence : | |
| element : | 
void ORBit_sequence_set_size (gpointer sequence, CORBA_unsigned_long length);
| sequence : | |
| length : | 
#define ORBit_sequence_index(sequence,idx) (sequence)->_buffer[(idx)]
| sequence : | |
| idx : | 
void ORBit_sequence_concat (gpointer sequence, gconstpointer append);
| sequence : | |
| append : | 
typedef enum {
	ORBIT_CONNECTION_CONNECTED,
	ORBIT_CONNECTION_CONNECTING,
	ORBIT_CONNECTION_DISCONNECTED,
	ORBIT_CONNECTION_IN_PROC
} ORBitConnectionStatus;
ORBitConnectionStatus ORBit_small_get_connection_status (CORBA_Object obj);
| obj : | |
| Returns : | 
ORBitConnectionStatus ORBit_small_listen_for_broken (CORBA_Object obj, GCallback fn, gpointer user_data);
| obj : | |
| fn : | |
| user_data : | |
| Returns : | 
ORBitConnectionStatus ORBit_small_unlisten_for_broken_full (CORBA_Object obj, GCallback fn, gpointer user_data);
| obj : | |
| fn : | |
| user_data : | |
| Returns : | 
ORBitConnectionStatus ORBit_small_unlisten_for_broken (CORBA_Object obj, GCallback fn);
| obj : | |
| fn : | |
| Returns : | 
ORBitConnection* ORBit_small_get_connection (CORBA_Object obj);
| obj : | |
| Returns : | 
ORBitConnection* ORBit_small_get_connection_ref (CORBA_Object obj);
| obj : | |
| Returns : | 
void ORBit_connection_set_max_buffer (ORBitConnection *cnx, gulong max_buffer_bytes);
| cnx : | |
| max_buffer_bytes : | 
ORBit_IInterface* ORBit_small_get_iinterface
                                            (CORBA_Object opt_object,
                                             const CORBA_char *repo_id,
                                             CORBA_Environment *ev);
| opt_object : | |
| repo_id : | |
| ev : | |
| Returns : | 
CORBA_sequence_ORBit_IInterface* ORBit_small_get_iinterfaces
                                            (const char *name);
| name : | |
| Returns : | 
void        ORBit_small_invoke_stub_n       (CORBA_Object object,
                                             ORBit_IMethods *methods,
                                             glong index,
                                             gpointer ret,
                                             gpointer *args,
                                             CORBA_Context ctx,
                                             CORBA_Environment *ev);
| object : | |
| methods : | |
| index : | |
| ret : | |
| args : | |
| ctx : | |
| ev : | 
CORBA_char* ORBit_small_get_type_id         (CORBA_Object object,
                                             CORBA_Environment *ev);
| object : | |
| ev : | |
| Returns : | 
void        (*ORBitAsyncInvokeFunc)         (CORBA_Object object,
                                             ORBit_IMethod *m_data,
                                             ORBitAsyncQueueEntry *aqe,
                                             gpointer user_data,
                                             CORBA_Environment *ev);
| object : | |
| m_data : | |
| aqe : | |
| user_data : | |
| ev : | 
void ORBit_small_demarshal_async (ORBitAsyncQueueEntry *aqe, gpointer ret, gpointer *args, CORBA_Environment *ev);
| aqe : | |
| ret : | |
| args : | |
| ev : | 
void        ORBit_small_invoke_stub         (CORBA_Object object,
                                             ORBit_IMethod *m_data,
                                             gpointer ret,
                                             gpointer *args,
                                             CORBA_Context ctx,
                                             CORBA_Environment *ev);
| object : | |
| m_data : | |
| ret : | |
| args : | |
| ctx : | |
| ev : | 
void        ORBit_small_invoke_async        (CORBA_Object obj,
                                             ORBit_IMethod *m_data,
                                             ORBitAsyncInvokeFunc 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.
| obj : | |
| m_data : | |
| fn : | |
| user_data : | |
| args : | |
| ctx : | |
| ev : | 
CORBA_sequence_CORBA_TypeCode* ORBit_small_get_types
                                            (const char *name);
| name : | |
| Returns : | 
gboolean ORBit_small_load_typelib (const char *libname);
This method has security issues if you do not use an absolute path in libname. The environment variables ORBIT_TYPELIB_PATH and GNOME2_PATH are used to scan for type libraries.
| libname : | the name of the type library to load | 
| Returns : | FALSE if load failed. | 
| << Allocators |