Main Page
Related Pages
Modules
Classes
Files
File List
File Members
src
SAFplus
components
prov
include
clProvApi.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3
*
4
* This file is available under a commercial license from the
5
* copyright holder or the GNU General Public License Version 2.0.
6
*
7
* The source code for this program is not published or otherwise
8
* divested of its trade secrets, irrespective of what has been
9
* deposited with the U.S. Copyright office.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* For more information, see the file COPYING provided with this
17
* material.
18
*/
19
/*******************************************************************************
20
* ModuleName : prov
21
* File : clProvApi.h
22
*******************************************************************************/
23
24
/*******************************************************************************
25
* Description :
26
* This header file contains Provision Library related API defination.
27
*
28
*
29
*****************************************************************************/
30
31
#ifndef _CL_PROV_API_H_
32
#define _CL_PROV_API_H_
33
34
#ifdef __cplusplus
35
extern
"C"
36
{
37
#endif
38
39
#include <
clCommon.h
>
40
#include <
clCorMetaData.h
>
41
#include <
clCorNotifyApi.h
>
42
54
/******************************** Provision Library APIs *************************/
55
/*********************************************************************************/
56
/* clProvInitialize */
57
/* clProvFinalize */
58
/* clProvVersionCheck */
59
/* clProvObjectCreate */
60
/* clProvObjectDelete */
61
/* */
62
/*********************************************************************************/
63
74
typedef
struct
ClProvTxnData
75
{
76
83
ClCorOpsT
provCmd
;
84
93
void
*
pMoId
;
99
ClCorAttrPathPtrT
attrPath
;
106
ClCorAttrTypeT
attrType
;
113
ClCorTypeT
attrDataType
;
120
ClCorAttrIdT
attrId
;
130
void
*
pProvData
;
137
ClUint32T
size
;
144
ClUint32T
index
;
145
146
ClCorTxnJobIdT
jobId;
147
148
}
ClProvTxnDataT
;
149
177
typedef
void (*
ClProvTxnStartCallbackT
) (
178
CL_IN
ClHandleT txnHandle);
179
207
typedef
void (*
ClProvTxnEndCallbackT
) (
208
CL_IN
ClHandleT txnHandle);
209
217
typedef
struct
218
{
219
/*
220
* This is used to get the start callback from the user which will be called
221
* before beginning a transaction.
222
*/
223
ClProvTxnStartCallbackT
fpProvTxnStart;
224
225
/*
226
* This is used to get the end callback from the user which will be called
227
* after completing the transaction.
228
*/
229
ClProvTxnEndCallbackT
fpProvTxnEnd;
230
}
ClProvTxnCallbacksT
;
231
256
ClRcT
clProvInitialize
();
257
280
ClRcT
clProvFinalize
();
281
305
ClRcT
clProvVersionCheck
(
CL_INOUT
ClVersionT
* pVersion);
306
338
ClRcT
clProvObjectCreate
(
CL_IN
ClCorMOIdPtrT
pMoId,
CL_IN
ClCorAttributeValueListPtrT
attrList,
CL_OUT
ClCorObjectHandleT
* pHandle);
339
363
ClRcT
clProvObjectDelete
(
CL_IN
ClCorObjectHandleT
handle);
364
365
ClRcT
clProvResourcesGet(
ClCorMOIdListT
** ppMoIdList);
366
370
#ifdef __cplusplus
371
}
372
#endif
373
374
#endif
/* _CL_PROV_API_H_ */
Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using
Doxygen