Guardtime Parameter and Task Handling SDK libparamset
param_value.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2017 Guardtime, Inc.
3  *
4  * This file is part of the Guardtime client SDK.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License").
7  * You may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  * http://www.apache.org/licenses/LICENSE-2.0
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES, CONDITIONS, OR OTHER LICENSES OF ANY KIND, either
13  * express or implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  * "Guardtime" and "KSI" are trademarks or registered trademarks of
16  * Guardtime, Inc., and no license to trademarks is granted; Guardtime
17  * reserves and retains all trademark rights.
18  */
19 
20 #ifndef SET_PARAM_VALUE_H
21 #define SET_PARAM_VALUE_H
22 
23 #include <stddef.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
34 typedef struct PARAM_VAL_st PARAM_VAL;
35 
42 
45 
48 
51 
54 
57 
60 
63 
66 
69 };
70 
77 
80 };
81 
93 int PARAM_VAL_new(const char *value, const char* source, int priority, PARAM_VAL **newObj);
94 
106 int PARAM_VAL_insert(PARAM_VAL *target, const char* source, int priority, int at, PARAM_VAL *obj);
107 
112 void PARAM_VAL_free(PARAM_VAL *rootValue);
113 
135 int PARAM_VAL_getElement(PARAM_VAL *rootValue, const char* source, int priority, int at, PARAM_VAL** val);
136 
151 int PARAM_VAL_popElement(PARAM_VAL **rootValue, const char* source, int priority, int at, PARAM_VAL** val);
152 
161 int PARAM_VAL_extract(PARAM_VAL *rootValue, const char **value, const char **source, int *priority);
162 
172 int PARAM_VAL_getElementCount(PARAM_VAL *rootValue, const char *source, int prio, int *count);
173 
183 int PARAM_VAL_getInvalidCount(PARAM_VAL *rootValue, const char *source, int prio, int *count);
184 
199 int PARAM_VAL_getPriority(PARAM_VAL *rootValue, int current, int *nextPrio);
200 
209 int PARAM_VAL_getErrors(PARAM_VAL *rootValue, int *format, int* content);
210 
222 int PARAM_VAL_getInvalid(PARAM_VAL *rootValue, const char* source, int priority, int at, PARAM_VAL** val);
223 
231 char* PARAM_VAL_toString(const PARAM_VAL *value, char *buf, size_t buf_len);
232 
233 
234 
235 #ifdef __cplusplus
236 }
237 #endif
238 
239 #endif /* SET_PARAM_VALUE_H */
int PARAM_VAL_getElement(PARAM_VAL *rootValue, const char *source, int priority, int at, PARAM_VAL **val)
int PARAM_VAL_insert(PARAM_VAL *target, const char *source, int priority, int at, PARAM_VAL *obj)
Definition: param_value.h:68
Definition: param_value.h:59
Definition: param_value.h:65
struct PARAM_VAL_st PARAM_VAL
Definition: param_value.h:34
int PARAM_VAL_getPriority(PARAM_VAL *rootValue, int current, int *nextPrio)
int PARAM_VAL_getElementCount(PARAM_VAL *rootValue, const char *source, int prio, int *count)
Definition: param_value.h:41
int PARAM_VAL_new(const char *value, const char *source, int priority, PARAM_VAL **newObj)
Definition: param_value.h:50
void PARAM_VAL_free(PARAM_VAL *rootValue)
Definition: param_value.h:79
PST_INDEX_enum
Definition: param_value.h:74
Definition: param_value.h:44
int PARAM_VAL_extract(PARAM_VAL *rootValue, const char **value, const char **source, int *priority)
int PARAM_VAL_getInvalidCount(PARAM_VAL *rootValue, const char *source, int prio, int *count)
Definition: param_value.h:53
int PARAM_VAL_getInvalid(PARAM_VAL *rootValue, const char *source, int priority, int at, PARAM_VAL **val)
char * PARAM_VAL_toString(const PARAM_VAL *value, char *buf, size_t buf_len)
Definition: param_value.h:62
Definition: param_value.h:47
int PARAM_VAL_getErrors(PARAM_VAL *rootValue, int *format, int *content)
PST_PRIORITY_enum
Definition: param_value.h:39
Definition: param_value.h:76
Definition: param_value.h:56
int PARAM_VAL_popElement(PARAM_VAL **rootValue, const char *source, int priority, int at, PARAM_VAL **val)