forked from cleech/open-isns
-
Notifications
You must be signed in to change notification settings - Fork 22
/
vendor.c
41 lines (36 loc) · 996 Bytes
/
vendor.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* iSNS vendor specific objects
*
* Copyright (C) 2007 Olaf Kirch <[email protected]>
*/
#include <stdlib.h>
#include <string.h>
#include <libisns/isns.h>
#include "objects.h"
#include <libisns/attrs.h>
#include "vendor.h"
#include <libisns/util.h>
static uint32_t policy_attrs[] = {
OPENISNS_TAG_POLICY_SPI,
OPENISNS_TAG_POLICY_KEY,
OPENISNS_TAG_POLICY_ENTITY,
OPENISNS_TAG_POLICY_OBJECT_TYPE,
OPENISNS_TAG_POLICY_NODE_NAME,
OPENISNS_TAG_POLICY_NODE_TYPE,
OPENISNS_TAG_POLICY_FUNCTIONS,
OPENISNS_TAG_POLICY_VISIBLE_DD,
OPENISNS_TAG_POLICY_DEFAULT_DD,
};
static uint32_t policy_key_attrs[] = {
OPENISNS_TAG_POLICY_SPI,
};
isns_object_template_t isns_policy_template = {
.iot_name = "Policy",
.iot_handle = ISNS_OBJECT_TYPE_POLICY,
.iot_attrs = policy_attrs,
.iot_num_attrs = array_num_elements(policy_attrs),
.iot_keys = policy_key_attrs,
.iot_num_keys = array_num_elements(policy_key_attrs),
.iot_container = &isns_entity_template,
.iot_vendor_specific = 1,
};