blob: 9960c76c8499ed51f75553b95c6dd1902c2306c1 [file] [log] [blame]
##
## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied. See the License for the
## specific language governing permissions and limitations
## under the License.
##
// This file automatically generated by:
// Apache Etch 1.1.0-incubating (LOCAL-0) / c 1.1.0-incubating (LOCAL-0)
// Fri Aug 28 15:58:20 CEST 2009
// This file is automatically created and should not be edited!
/*
* $helper.getBaseFileNameH( $intf, $suffix )
* $helper.getServiceName( $intf ) client interface.
* combines java bindings's $intf.name()Server and Base$intf.name()Server
*/
#ifndef $helper.getBaseName( $intf, $suffix ).toUpperCase()_H
#define $helper.getBaseName( $intf, $suffix ).toUpperCase()_H
\#include "$helper.getIntfFileNameH( $intf )"
\#include "etch_sessionint.h"
#ifdef __cplusplus
extern "C" {
#endif
extern unsigned short CLASSID_$helper.getBaseName( $intf, $suffix ).toUpperCase()_BASE;
//typedef struct $helper.getImplName( $intf, $suffix ) $helper.getImplName( $intf, $suffix );
/**
* i_$helper.getBaseName( $intf, $suffix )
* $helper.getServiceName( $intf ) $suffix base interface
*/
typedef struct i_$helper.getBaseName( $intf, $suffix )
{
etch_object object;
struct $helper.getImplName( $intf, $suffix )* thisx;
i_$helper.getServiceName( $intf )* i$helper.getServiceName( $intf );
#if ($helper.isServer($mc))
int session_id;
unsigned char is_service_interface_owned;
unsigned char unused[3];
#end
/* - - - - - - - - - - -
* objsession
* - - - - - - - - - - -
*/
i_objsession* iobjsession;
etch_session_control _session_control;
etch_session_notify _session_notify;
etch_session_query _session_query;
/* - - - - - - - - - - -
* service virtuals
* - - - - - - - - - - -
*/
## generate service virtuals
#foreach( $n in $intf.iterator() )
#if ($n.isMessage())
#if (!$n.isHidden())
$helper.getServiceName( $intf )_$n.name() $n.name();
#end
#end
#end
#foreach( $n in $intf.iterator() )
#if ($n.isMessage())
#if ($n.isMsgDir($mc) || $n.isMsgDirBoth())
#if (!$n.isHidden())
$helper.getServiceName( $intf )_$n.name() async_$n.name();
#end
#end
#end
#end
#if (!$intf.hasMessageDirection($mc) && $helper.hasMessageDirectionBoth( $intf ))
/* no $mc.toString().toLowerCase()-directed items defined */
#end
/* - - - - - - - - - - -
* service data
* - - - - - - - - - - -
*/
#foreach( $n in $intf.iterator() )
#if ($n.isStruct())
#if (!$n.isHidden())
$n.efqname($helper)* $n.name().toString();
#end
#end
#end
/* - - - - - - - - - - -
* private instance data
* - - - - - - - - - - -
*/
int server_id;
} i_$helper.getBaseName($intf, $suffix);
#if($helper.isServer($mc))
i_$helper.getBaseName( $intf, $suffix )* new_$helper.getBaseName( $intf, $suffix )_base (void* implobj, i_$helper.getIntfName( $intf )*);
i_$helper.getBaseName( $intf, $suffix )* new_$helper.getRemoteName( $intf, $suffix )_base (void* implobj, i_$helper.getIntfName( $intf )*);
int destroy_$helper.getBaseName( $intf, $suffix )_base (void*);
#end
#if($helper.isClient( $mc ))
//i_$helper.getBaseName($intf, $suffix)* new_$helper.getBaseName($intf, $suffix)_base($helper.getImplName($intf, $suffix)* implobj);
i_$helper.getBaseName($intf, $suffix)* new_$helper.getBaseName($intf, $suffix)_base();
#end
#ifdef __cplusplus
} //extern "C"
#endif
#endif /* $helper.getBaseName( $intf, $suffix ).toUpperCase()_H */