Back to index

im-sdk  12.3.91
Functions | Variables
xaux_object_interface.c File Reference
#include <stdio.h>
#include "xaux_object.h"

Go to the source code of this file.

Functions

static int xaux_so_Create (aux_t *)
static int xaux_so_Start (aux_t *, const unsigned char *, int size)
static int xaux_so_Draw (aux_t *, const unsigned char *, int size)
static int xaux_so_Done (aux_t *, const unsigned char *, int size)
static int xaux_so_Switched (aux_t *, int im_id, int on_off)
static int xaux_so_Destroy (aux_t *)
static int xaux_so_GetValuesReply (aux_t *, const unsigned char *, int)
static int xaux_so_DestroyIC (aux_t *)
static int xaux_so_SetICForcus (aux_t *)
static int xaux_so_UnsetICForcus (aux_t *)

Variables

aux_method_t xaux_so_methods
xaux_class_t xaux_classes []
static xaux_object_txaux_object_inst = NULL
static xaux_object_t xaux_object_real

Function Documentation

static int xaux_so_Create ( aux_t aux) [static]

Definition at line 60 of file xaux_object_interface.c.

{
       DEBUG_printf("xaux_so_Create aux: 0x%x======================\n", aux);

       /* initialize some communication atoms and start aux manager */
       if (xaux_object_inst != NULL)
              return (True);

#ifdef USE_XAUX_OBJECT_MALLOC
       xaux_object_inst = (xaux_object_t *)xaux_object_new();
       if (xaux_object_inst == NULL)
              return (False);
#else
       xaux_object_inst = &xaux_object_real;
       memset(xaux_object_inst, 0, sizeof (xaux_object_t));
#endif

       return (xaux_object_init(xaux_object_inst, aux, XAUX_OBJECT_CLASS_NAME, xaux_classes));
}

Here is the call graph for this function:

static int xaux_so_Destroy ( aux_t aux) [static]

Definition at line 160 of file xaux_object_interface.c.

{
       DEBUG_printf("xaux_so_Destroy ====== \n");
       xaux_object_destroy(xaux_object_inst);

#ifdef USE_XAUX_OBJECT_MALLOC
       free ((char *)xaux_object_inst);
#endif
       xaux_object_inst = NULL;
       return (True);
}

Here is the call graph for this function:

static int xaux_so_DestroyIC ( aux_t aux) [static]

Definition at line 177 of file xaux_object_interface.c.

{
       DEBUG_printf("xaux_so_DestroyIC ====== \n");
       return (True);
}
static int xaux_so_Done ( aux_t aux,
const unsigned char *  p,
int  size 
) [static]

Definition at line 130 of file xaux_object_interface.c.

{
       aux_data_t    * aux_data;
       char *classname;

       DEBUG_printf("xaux_so_Done aux: 0x%x======================\n", aux);

       aux_data = aux->service->decompose(AUX_DATA_DONE, p);
       if (aux_data == NULL) return(False);

       /* get aux classname */
        classname = (char *)xaux_object_get_classname_from_utfname((const CARD16 *)aux_data->aux_name,
                                                           aux_data->aux_name_length);

       DEBUG_printf("so_Done[%s] im:0x%x ic:0x%x\n",
              classname, aux_data->im, aux_data->ic);

       xaux_object_draw_aux_module(xaux_object_inst, aux, classname, aux_data, AUX_DATA_DONE);

       aux->service->decompose_free(aux_data);
        if (classname) free((char *)classname);

       return (True);
}

Here is the call graph for this function:

static int xaux_so_Draw ( aux_t aux,
const unsigned char *  p,
int  size 
) [static]

Definition at line 105 of file xaux_object_interface.c.

{
       aux_data_t *aux_data;
       char *classname;

       DEBUG_printf("xaux_so_Draw aux: 0x%x======================\n", aux);

       aux_data = aux->service->decompose(AUX_DATA_DRAW, p);
       if (aux_data == NULL) return(False);

       /* get aux classname */
        classname = (char *)xaux_object_get_classname_from_utfname((const CARD16 *)aux_data->aux_name,
                                                           aux_data->aux_name_length);

       DEBUG_printf("so_Draw: integer_count:%d, string_count:%d\n",
                     aux_data->integer_count,aux_data->string_count);

       xaux_object_draw_aux_module(xaux_object_inst, aux, classname, aux_data, AUX_DATA_DRAW);

       aux->service->decompose_free(aux_data);
        if (classname) free((char *)classname);

       return (True);
}

Here is the call graph for this function:

static int xaux_so_GetValuesReply ( aux_t aux,
const unsigned char *  p,
int  size 
) [static]

Definition at line 172 of file xaux_object_interface.c.

{
       return (True);
}
static int xaux_so_SetICForcus ( aux_t aux) [static]

Definition at line 183 of file xaux_object_interface.c.

{
       return (True);
}
static int xaux_so_Start ( aux_t aux,
const unsigned char *  p,
int  size 
) [static]

Definition at line 80 of file xaux_object_interface.c.

{
       aux_data_t *aux_data;
       char *classname;

       DEBUG_printf("xaux_so_Start aux: 0x%x======================\n", aux);

       aux_data = aux->service->decompose(AUX_DATA_START, p);
       if (aux_data == NULL) return(False);

       /* get aux classname */
        classname = (char *)xaux_object_get_classname_from_utfname((const CARD16 *)aux_data->aux_name,
                                                           aux_data->aux_name_length);

       DEBUG_printf("so_Start[%s] im:0x%x ic:0x%x\n",
              classname, aux_data->im, aux_data->ic);

       xaux_object_draw_aux_module(xaux_object_inst, aux, classname, aux_data, AUX_DATA_START);

       aux->service->decompose_free(aux_data);
        if (classname) free((char *)classname);

       return (True);
}

Here is the call graph for this function:

static int xaux_so_Switched ( aux_t aux,
int  im_id,
int  on_off 
) [static]

Definition at line 155 of file xaux_object_interface.c.

{
       return (True);
}
static int xaux_so_UnsetICForcus ( aux_t aux) [static]

Definition at line 188 of file xaux_object_interface.c.

{
       return (True);
}

Variable Documentation

Definition at line 91 of file aux_so.c.

Definition at line 53 of file xaux_object_interface.c.

Definition at line 57 of file xaux_object_interface.c.