1
0
mirror of https://github.com/stargieg/bacnet-stack synced 2025-10-26 23:35:52 +08:00

add uci init loop for nc

This commit is contained in:
Patrick Grimm
2014-02-17 03:04:08 +01:00
parent a699d8f43d
commit 5c93b54f68
2 changed files with 132 additions and 69 deletions

View File

@@ -44,6 +44,7 @@ extern "C" {
RECIPIENT_TYPE_ADDRESS = 2
} NC_RECIPIENT_TYPE;
int max_notificaton_classes_int;
#if defined(INTRINSIC_REPORTING)
/* BACnetRecipient structure */
@@ -76,6 +77,7 @@ BACnetRecipient ::= CHOICE {
/* Structure containing configuration for a Notification Class */
typedef struct notification_class_descr {
uint32_t Instance;
char Object_Name[64];
char Object_Description[64];
bool Disable;
@@ -99,6 +101,27 @@ BACnetRecipient ::= CHOICE {
} ACK_NOTIFICATION;
/* value/name tuples */
struct nc_inst_tuple {
char idx[18];
struct nc_inst_tuple *next;
};
typedef struct nc_inst_tuple nc_inst_tuple_t;
/* structure to hold tuple-list and uci context during iteration */
struct nc_inst_itr_ctx {
struct nc_inst_tuple *list;
struct uci_context *ctx;
char *section;
};
void Notification_Class_Load_UCI_List(
const char *sec_idx,
struct nc_inst_itr_ctx *itr);
void Notification_Class_Property_Lists(
const int **pRequired,