"Fossies" - the Fresh Open Source Software archive 
Member "evolution-brutus-1.2.35/servant_impl/IMAPIProgress_impl.c" of archive evolution-brutus-1.2.35.tar.gz:
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Implementation file for Brutus IMAPIProgress servant.
* Copyright (C) 2005-2007 OMC Denmark ApS.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
/* This is a template file generated by command */
/* orbit-idl-2 --skeleton-impl IMAPIProgress.idl */
/* User must edit this file, inserting servant */
/* specific code between markers. */
#include "IMAPIProgress.h"
/*** App-specific servant structures ***/
#if !defined(_typedef_impl_POA_BRUTUS_IMAPIProgress_)
#define _typedef_impl_POA_BRUTUS_IMAPIProgress_ 1
typedef struct {
POA_BRUTUS_IMAPIProgress servant;
PortableServer_POA poa;
/* ------ add private attributes here ------ */
/* ------ ---------- end ------------ ------ */
} impl_POA_BRUTUS_IMAPIProgress;
#endif
/*** Implementation stub prototypes ***/
#if !defined(_decl_impl_BRUTUS_IMAPIProgress__destroy_)
#define _decl_impl_BRUTUS_IMAPIProgress__destroy_ 1
static void impl_BRUTUS_IMAPIProgress__destroy(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_Progress_)
#define _decl_impl_BRUTUS_IMAPIProgress_Progress_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_Progress(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long ulValue,
const CORBA_unsigned_long ulCount,
const CORBA_unsigned_long ulTotal,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_GetFlags_)
#define _decl_impl_BRUTUS_IMAPIProgress_GetFlags_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetFlags(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulFlags,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_GetMax_)
#define _decl_impl_BRUTUS_IMAPIProgress_GetMax_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetMax(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulMax,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_GetMin_)
#define _decl_impl_BRUTUS_IMAPIProgress_GetMin_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetMin(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulMin,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_SetLimits_)
#define _decl_impl_BRUTUS_IMAPIProgress_SetLimits_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_SetLimits(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long lpulMin,
const CORBA_unsigned_long lpulMax,
const CORBA_unsigned_long lpulFlags,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_QueryInterface_)
#define _decl_impl_BRUTUS_IMAPIProgress_QueryInterface_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_QueryInterface(impl_POA_BRUTUS_IMAPIProgress * servant,
const BRUTUS_GUID * iid,
BRUTUS_IUnknown * ppvObject,
CORBA_Environment * ev);
#endif
#if !defined(_decl_impl_BRUTUS_IMAPIProgress_Destroy_)
#define _decl_impl_BRUTUS_IMAPIProgress_Destroy_ 1
static void impl_BRUTUS_IMAPIProgress_Destroy(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long InstanceID,
CORBA_Environment * ev);
#endif
/*** epv structures ***/
#if !defined(_impl_BRUTUS_IMAPIProgress_base_epv_)
#define _impl_BRUTUS_IMAPIProgress_base_epv_ 1
static PortableServer_ServantBase__epv impl_BRUTUS_IMAPIProgress_base_epv = {
NULL, /* _private data */
(gpointer) & impl_BRUTUS_IMAPIProgress__destroy, /* finalize routine */
NULL, /* default_POA routine */
};
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_epv_)
#define _impl_BRUTUS_IMAPIProgress_epv_ 1
static POA_BRUTUS_IMAPIProgress__epv impl_BRUTUS_IMAPIProgress_epv = {
NULL, /* _private */
(gpointer) & impl_BRUTUS_IMAPIProgress_Progress,
(gpointer) & impl_BRUTUS_IMAPIProgress_GetFlags,
(gpointer) & impl_BRUTUS_IMAPIProgress_GetMax,
(gpointer) & impl_BRUTUS_IMAPIProgress_GetMin,
(gpointer) & impl_BRUTUS_IMAPIProgress_SetLimits,
};
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_BRUTUS_IUnknown_epv_)
#define _impl_BRUTUS_IMAPIProgress_BRUTUS_IUnknown_epv_ 1
static POA_BRUTUS_IUnknown__epv impl_BRUTUS_IMAPIProgress_BRUTUS_IUnknown_epv = {
NULL, /* _private */
(gpointer) & impl_BRUTUS_IMAPIProgress_QueryInterface,
(gpointer) & impl_BRUTUS_IMAPIProgress_Destroy,
};
#endif
/*** vepv structures ***/
#if !defined(_impl_BRUTUS_IMAPIProgress_vepv_)
#define _impl_BRUTUS_IMAPIProgress_vepv_ 1
static POA_BRUTUS_IMAPIProgress__vepv impl_BRUTUS_IMAPIProgress_vepv = {
&impl_BRUTUS_IMAPIProgress_base_epv,
&impl_BRUTUS_IMAPIProgress_BRUTUS_IUnknown_epv,
&impl_BRUTUS_IMAPIProgress_epv,
};
#endif
/*** Stub implementations ***/
#if !defined(_impl_BRUTUS_IMAPIProgress__create_)
#define _impl_BRUTUS_IMAPIProgress__create_ 1
static BRUTUS_IMAPIProgress impl_BRUTUS_IMAPIProgress__create(PortableServer_POA poa,
CORBA_Environment * ev)
{
BRUTUS_IMAPIProgress retval;
impl_POA_BRUTUS_IMAPIProgress *newservant;
PortableServer_ObjectId *objid;
newservant = g_new0(impl_POA_BRUTUS_IMAPIProgress, 1);
newservant->servant.vepv = &impl_BRUTUS_IMAPIProgress_vepv;
newservant->poa = (PortableServer_POA) CORBA_Object_duplicate((CORBA_Object) poa, ev);
POA_BRUTUS_IMAPIProgress__init((PortableServer_Servant) newservant, ev);
/* Before servant is going to be activated all
* private attributes must be initialized. */
/* ------ init private attributes here ------ */
/* ------ ---------- end ------------- ------ */
objid = PortableServer_POA_activate_object(poa, newservant, ev);
CORBA_free(objid);
retval = PortableServer_POA_servant_to_reference(poa, newservant, ev);
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress__destroy_)
#define _impl_BRUTUS_IMAPIProgress__destroy_ 1
static void impl_BRUTUS_IMAPIProgress__destroy(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_Environment * ev)
{
CORBA_Object_release((CORBA_Object) servant->poa, ev);
/* No further remote method calls are delegated to
* servant and you may free your private attributes. */
/* ------ free private attributes here ------ */
/* ------ ---------- end ------------- ------ */
POA_BRUTUS_IMAPIProgress__fini((PortableServer_Servant) servant, ev);
g_free(servant);
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_Progress_)
#define _impl_BRUTUS_IMAPIProgress_Progress_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_Progress(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long ulValue,
const CORBA_unsigned_long ulCount,
const CORBA_unsigned_long ulTotal,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_GetFlags_)
#define _impl_BRUTUS_IMAPIProgress_GetFlags_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetFlags(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulFlags,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_GetMax_)
#define _impl_BRUTUS_IMAPIProgress_GetMax_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetMax(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulMax,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_GetMin_)
#define _impl_BRUTUS_IMAPIProgress_GetMin_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_GetMin(impl_POA_BRUTUS_IMAPIProgress * servant,
CORBA_unsigned_long * lpulMin,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_SetLimits_)
#define _impl_BRUTUS_IMAPIProgress_SetLimits_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_SetLimits(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long lpulMin,
const CORBA_unsigned_long lpulMax,
const CORBA_unsigned_long lpulFlags,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_QueryInterface_)
#define _impl_BRUTUS_IMAPIProgress_QueryInterface_ 1
static BRUTUS_BRESULT impl_BRUTUS_IMAPIProgress_QueryInterface(impl_POA_BRUTUS_IMAPIProgress * servant,
const BRUTUS_GUID * iid,
BRUTUS_IUnknown * ppvObject,
CORBA_Environment * ev)
{
BRUTUS_BRESULT retval;
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
return retval;
}
#endif
#if !defined(_impl_BRUTUS_IMAPIProgress_Destroy_)
#define _impl_BRUTUS_IMAPIProgress_Destroy_ 1
static void impl_BRUTUS_IMAPIProgress_Destroy(impl_POA_BRUTUS_IMAPIProgress * servant,
const CORBA_unsigned_long InstanceID,
CORBA_Environment * ev)
{
/* ------ insert method code here ------ */
/* ------ ---------- end ------------ ------ */
}
#endif