40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/*
|
|
* v1_scope_selector.h
|
|
*
|
|
* A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.
|
|
*/
|
|
|
|
#ifndef _v1_scope_selector_H_
|
|
#define _v1_scope_selector_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1_scope_selector_t v1_scope_selector_t;
|
|
|
|
#include "v1_scoped_resource_selector_requirement.h"
|
|
|
|
|
|
|
|
typedef struct v1_scope_selector_t {
|
|
list_t *match_expressions; //nonprimitive container
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1_scope_selector_t;
|
|
|
|
__attribute__((deprecated)) v1_scope_selector_t *v1_scope_selector_create(
|
|
list_t *match_expressions
|
|
);
|
|
|
|
void v1_scope_selector_free(v1_scope_selector_t *v1_scope_selector);
|
|
|
|
v1_scope_selector_t *v1_scope_selector_parseFromJSON(cJSON *v1_scope_selectorJSON);
|
|
|
|
cJSON *v1_scope_selector_convertToJSON(v1_scope_selector_t *v1_scope_selector);
|
|
|
|
#endif /* _v1_scope_selector_H_ */
|
|
|