RE: ORBit_small_freekids howto
- From: "Johan Antonsson" <Johan Antonsson ibitec se>
- To: <Frank Rehberger web de>
- Cc: "Orbit-List (E-mail)" <orbit-list gnome org>
- Subject: RE: ORBit_small_freekids howto
- Date: Fri, 9 Jan 2004 16:43:18 +0100
Hi Frank,
Does this mean that I'm not supposed to use the macros generated from idl and which are located in the .h file? Se below. I was under the assumption that I have to allocate an se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair with se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair__alloc(). If that's not the case, what is the recommended approach? ORBit_alloc_tcval, malloc? Do you have any good examples of similar use?
C_KeyValuePair.idl
==================
#ifndef C_KeyValuePair_idl
#define C_KeyValuePair_idl
module se {
module foi {
module flex {
module appl {
module adapterinterface {
module dc {
struct C_KeyValuePair {
long key;
string value;
};
};
};
};
};
};
};
#endif
C_KeyValuePair.h generated from C_KeyValuePair.idl
==================================================
/*
* This file was generated by orbit-idl-2 - DO NOT EDIT!
*/
#ifndef C_KeyValuePair_H
#define C_KeyValuePair_H 1
#include <glib.h>
#define ORBIT_IDL_SERIAL 19
#include <orbit/orbit-types.h>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
/** typedefs **/
#if !defined(_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_defined)
#define _se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_defined 1
typedef struct se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_type
se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair;
struct se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_type
{
CORBA_long key;
CORBA_string value;
};
#if !defined(TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_0)
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_0 'C'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_1 '_'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_2 'K'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_3 'e'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_4 'y'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_5 'V'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_6 'a'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_7 'l'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_8 'u'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_9 'e'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_10 'P'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_11 'a'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_12 'i'
#define TC_IMPL_TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_13 'r'
extern const struct CORBA_TypeCode_struct
TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_struct;
#define TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair ((CORBA_TypeCode)&TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_struct)
#endif
#define se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair__alloc() ((se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair *)ORBit_small_alloc (TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair))
#define se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair__freekids(m,d) ORBit_small_freekids (TC_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair,(m),(d))
#endif
/** POA structures **/
/** skel prototypes **/
/** stub prototypes **/
/** more internals **/
#if !defined(MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_0)
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_0 'C'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_1 '_'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_2 'K'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_3 'e'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_4 'y'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_5 'V'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_6 'a'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_7 'l'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_8 'u'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_9 'e'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_10 'P'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_11 'a'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_12 'i'
#define MARSHAL_IMPL_se_foi_flex_appl_adapterinterface_dc_C_KeyValuePair_13 'r'
#endif
#include <orbit/orb-core/orbit-interface.h>
#ifdef __cplusplus
}
#endif /* __cplusplus */
#ifndef EXCLUDE_ORBIT_H
#include <orbit/orbit.h>
#endif /* EXCLUDE_ORBIT_H */
#endif
#undef ORBIT_IDL_SERIAL
TIA
/Johan
-----Original Message-----
From: Frank.Rehberger@web.de [mailto:Frank.Rehberger@web.de]
Sent: den 9 januari 2004 13:36
To: Johan Antonsson
Cc: Orbit-List (E-mail)
Subject: Re: ORBit_small_freekids howto
Johan Antonsson wrote:
>Hi all,
>
>Can anyone give me a description on how to use ORBit_small_freekids(). It frees stuff allocated with ORBit_small_alloc(), right? What is supposed to go into arguments p and d and what do they mean?
>
>void ORBit_small_freekids (CORBA_TypeCode tc, gpointer p, gpointer d);
>
this function is for internal use only, do not use!
use CORBA_free(ptr) in your application only,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]