1 karl 1.5 //%2006////////////////////////////////////////////////////////////////////////
|
2 schuur 1.1 //
|
3 karl 1.2 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 schuur 1.1 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.2 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.3 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.5 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 schuur 1.1 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 mreddy 1.5.24.1 //
|
21 schuur 1.1 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 /*!
35 \file serialization.h
36 \brief Header file for the binary serializer component for Remote CMPI.
37
38 This file defines a function table of methods to be used for serializing
39 and deserializing CMPI data respectively. It covers most of the encapsulated
40 data types, however, those which cannot be fully serialized or
41 deserialized due to API restrictions are not included, e.g. CMPIResult,
42 schuur 1.1 CMPIContext or CMPIEnumeration.
|
43 mreddy 1.5.24.1 */
|
44 schuur 1.1
45 #ifndef _SOCKETCOMM_H
|
46 mreddy 1.5.24.1 #define _SOCKETCOMM_H
|
47 schuur 1.1
|
48 mreddy 1.5.24.1 #include "serialization.h"
49 #include "debug.h"
|
50 schuur 1.1
51 /****************************************************************************/
52 //! MI service request identifier.
53 /*!
54 This struct holds the function name and a function pointer for
55 remote MI calls. Once the function name has been deserialized, the
56 appropriate method may then resolve the handler function to be called.
57
58 */
|
59 mreddy 1.5.24.1 struct socket_mi_function {
60 char * name; /*!< function name */
61 void (* function) ( int,
62 CONST CMPIBroker *,
63 CONST CMPIContext *,
64 CONST CMPIObjectPath * ); /*!< function pointer */
|
65 schuur 1.1 };
66
67
68 //! Broker service request identifier.
69 /*!
70 This struct holds the function name and a function pointer for
71 up-calls. Once the function name has been deserialized, the
72 appropriate method may then resolve the handler function to be called.
73
74 */
|
75 mreddy 1.5.24.1 struct socket_mb_function {
76 char * name; /*!< function name */
77 void (* function) ( int, CONST CMPIBroker *, CONST CMPIContext * ); /*!< function
78 pointer */
|
79 schuur 1.1 };
80
81
82
83 /****************************************************************************/
84
85 extern char * RCMPI_CTX_ID;
86
87 /****************************************************************************/
88
|
89 mreddy 1.5.24.1 void socketcomm_copy_args ( CMPIArgs * src, CMPIArgs * dst );
|
90 schuur 1.1
|
91 mreddy 1.5.24.1 void socketcomm_array2result ( CMPIArray * array, CONST CMPIResult * result );
|
92 schuur 1.1
|
93 mreddy 1.5.24.1 void socketcomm_serialize_props ( int socket,
94 const struct BinarySerializerFT * sft,
95 char ** props );
96 char ** socketcomm_deserialize_props ( int socket,
97 const struct BinarySerializerFT * sft,
98 CONST CMPIBroker * broker );
99
100 void socketcomm_serialize_context ( int socket,
101 const struct BinarySerializerFT * sft,
102 CONST CMPIContext * ctx );
103 void socketcomm_deserialize_context ( int socket,
104 const struct BinarySerializerFT * sft,
105 CONST CMPIBroker * broker,
106 CONST CMPIContext * ctx );
|
107 schuur 1.1
108 #endif
109
110 /****************************************************************************/
111
112 /*** Local Variables: ***/
113 /*** mode: C ***/
114 /*** c-basic-offset: 8 ***/
115 /*** End: ***/
|