## orbit2-small orbit2-small |

## Functions

const char * | ORBit_get_safe_tmp ()
gpointer | ORBit_small_alloc ()
gpointer | ORBit_small_allocbuf ()
void | ORBit_small_freekids ()
gpointer | ORBit_sequence_alloc ()
void | ORBit_sequence_append ()
void | ORBit_sequence_set_size ()
#define | ORBit_sequence_index()
void | ORBit_sequence_concat ()
gpointer | ORBit_small_get_servant ()
ORBitConnectionStatus | ORBit_small_get_connection_status ()
ORBitConnectionStatus | ORBit_small_listen_for_broken ()
ORBitConnectionStatus | ORBit_small_unlisten_for_broken_full ()
ORBitConnectionStatus | ORBit_small_unlisten_for_broken ()
ORBitConnection * | ORBit_small_get_connection ()
ORBitConnection * | ORBit_small_get_connection_ref ()
void | ORBit_small_connection_unref ()
void | ORBit_connection_set_max_buffer ()
ORBit_IInterface * | ORBit_small_get_iinterface ()
CORBA_sequence_ORBit_IInterface * | ORBit_small_get_iinterfaces ()
void | ORBit_small_invoke_stub_n ()
CORBA_char * | ORBit_small_get_type_id ()
void | (*ORBitAsyncInvokeFunc) ()
void | ORBit_small_demarshal_async ()
void | ORBit_small_invoke_stub ()
void | ORBit_small_invoke_async ()
CORBA_sequence_CORBA_TypeCode * | ORBit_small_get_types ()
gboolean | ORBit_small_load_typelib ()

## Types and Values

| ORBit_IModule
enum | ORBitConnectionStatus
| ORBitConnection
extern int | ORBit_small_flags
| ORBitAsyncQueueEntry
#define | ORBIT_SMALL_FAST_LOCALS
#define | ORBIT_SMALL_FORCE_GENERIC_MARSHAL

## Description

## Functions

### ORBit_get_safe_tmp ()

    const char *
    ORBit_get_safe_tmp (void);

### ORBit_small_alloc ()

    gpointer
    ORBit_small_alloc (CORBA_TypeCode tc);

### ORBit_small_allocbuf ()

    gpointer
    ORBit_small_allocbuf (CORBA_TypeCode tc,
                          CORBA_unsigned_long length);

### ORBit_small_freekids ()

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

### ORBit_sequence_alloc ()

    gpointer
    ORBit_sequence_alloc (CORBA_TypeCode sequence_tc,
                          CORBA_unsigned_long length);

### ORBit_sequence_append ()

    void
    ORBit_sequence_append (gpointer sequence,
                           gconstpointer element);

### ORBit_sequence_set_size ()

    void
    ORBit_sequence_set_size (gpointer sequence,
                             CORBA_unsigned_long length);

### ORBit_sequence_index()

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

### ORBit_sequence_concat ()

    void
    ORBit_sequence_concat (gpointer sequence,
                           gconstpointer append);

### ORBit_small_get_servant ()

    gpointer
    ORBit_small_get_servant (CORBA_Object obj);

### ORBit_small_get_connection_status ()

    ORBitConnectionStatus
    ORBit_small_get_connection_status (CORBA_Object obj);

### ORBit_small_listen_for_broken ()

    ORBitConnectionStatus
    ORBit_small_listen_for_broken (CORBA_Object obj,
                                   GCallback fn,
                                   gpointer user_data);

### ORBit_small_unlisten_for_broken_full ()

    ORBitConnectionStatus
    ORBit_small_unlisten_for_broken_full (CORBA_Object obj,
                                          GCallback fn,
                                          gpointer user_data);

### ORBit_small_unlisten_for_broken ()

    ORBitConnectionStatus
    ORBit_small_unlisten_for_broken (CORBA_Object obj,
                                     GCallback fn);

### ORBit_small_get_connection ()

    ORBitConnection *
    ORBit_small_get_connection (CORBA_Object obj);

### ORBit_small_get_connection_ref ()

    ORBitConnection *
    ORBit_small_get_connection_ref (CORBA_Object obj);

### ORBit_small_connection_unref ()

    void
    ORBit_small_connection_unref (ORBitConnection *cnx);

### ORBit_connection_set_max_buffer ()

    void
    ORBit_connection_set_max_buffer (ORBitConnection *cnx,
                                     gulong max_buffer_bytes);

### ORBit_small_get_iinterface ()

    ORBit_IInterface *
    ORBit_small_get_iinterface (CORBA_Object opt_object,
                                const CORBA_char *repo_id,
                                CORBA_Environment *ev);

### ORBit_small_get_iinterfaces ()

    CORBA_sequence_ORBit_IInterface *
    ORBit_small_get_iinterfaces (const char *name);

### ORBit_small_invoke_stub_n ()

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

### ORBit_small_get_type_id ()

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

### ORBitAsyncInvokeFunc ()

    void
    (*ORBitAsyncInvokeFunc) (CORBA_Object object,
                             ORBit_IMethod *m_data,
                             ORBitAsyncQueueEntry *aqe,
                             gpointer user_data,
                             CORBA_Environment *ev);

### ORBit_small_demarshal_async ()

    void
    ORBit_small_demarshal_async (ORBitAsyncQueueEntry *aqe,
                                 gpointer ret,
                                 gpointer *args,
                                 CORBA_Environment *ev);

### ORBit_small_invoke_stub ()

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

### ORBit_small_invoke_async ()

    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.

### ORBit_small_get_types ()

    CORBA_sequence_CORBA_TypeCode *
    ORBit_small_get_types (const char *name);

### ORBit_small_load_typelib ()

    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.

#### Parameters

libname | the name of the type library to load |

#### Returns

FALSE if load failed.

## Types and Values

### ORBit_IModule

    typedef struct {
    	CORBA_unsigned_long           version;
    	ORBit_IInterface            **interfaces;
    	CORBA_sequence_CORBA_TypeCode types;
    } ORBit_IModule;

### enum ORBitConnectionStatus

#### Members

ORBIT_CONNECTION_CONNECTED |  |
ORBIT_CONNECTION_CONNECTING |  |
ORBIT_CONNECTION_DISCONNECTED |  |
ORBIT_CONNECTION_IN_PROC |  |

### ORBitConnection

    typedef struct _ORBitConnection ORBitConnection;

### ORBit_small_flags

    extern int     ORBit_small_flags;

### ORBitAsyncQueueEntry

    typedef struct _ORBitAsyncQueueEntry ORBitAsyncQueueEntry;

### ORBIT_SMALL_FAST_LOCALS

    #define ORBIT_SMALL_FAST_LOCALS           1

### ORBIT_SMALL_FORCE_GENERIC_MARSHAL

    #define ORBIT_SMALL_FORCE_GENERIC_MARSHAL 2