Skip to content

Commit

Permalink
Unit testing of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
suvi-123 committed Oct 9, 2023
1 parent c4806e3 commit 24fa854
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 24 deletions.
13 changes: 0 additions & 13 deletions src/webcfg_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@
/*----------------------------------------------------------------------------*/
/* Data Structures */
/*----------------------------------------------------------------------------*/
typedef struct SubDocSupportMap
{
char name[256];//portforwarding or wlan
char support[8];//true or false;
#ifdef WEBCONFIG_BIN_SUPPORT
char rbus_listener[8];//true or false
char dest[64]; //comp destination eg. webconfig.pam.portforwarding
#endif
struct SubDocSupportMap *next;
}SubDocSupportMap_t;

/*----------------------------------------------------------------------------*/
/* File Scoped Variables */
Expand All @@ -53,9 +43,6 @@ SupplementaryDocs_t *g_spInfoTail = NULL;
/* Function Prototypes */
/*----------------------------------------------------------------------------*/
void displaystruct();
SubDocSupportMap_t * get_global_sdInfoHead(void);
SubDocSupportMap_t * get_global_sdInfoTail(void);
SupplementaryDocs_t * get_global_spInfoTail(void);
/*----------------------------------------------------------------------------*/
/* External Functions */
/*----------------------------------------------------------------------------*/
Expand Down
22 changes: 22 additions & 0 deletions src/webcfg_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@ typedef struct SupplementaryDocs
char *name;
struct SupplementaryDocs *next;
}SupplementaryDocs_t;

typedef struct SubDocSupportMap
{
char name[256];//portforwarding or wlan
char support[8];//true or false;
#ifdef WEBCONFIG_BIN_SUPPORT
char rbus_listener[8];//true or false
char dest[64]; //comp destination eg. webconfig.pam.portforwarding
#endif
struct SubDocSupportMap *next;
}SubDocSupportMap_t;

SubDocSupportMap_t * get_global_sdInfoHead(void);
SubDocSupportMap_t * get_global_sdInfoTail(void);
SupplementaryDocs_t * get_global_spInfoTail(void);

extern SubDocSupportMap_t *g_sdInfoHead;
extern SubDocSupportMap_t *g_sdInfoTail;
extern SupplementaryDocs_t *g_spInfoHead;
extern SupplementaryDocs_t *g_spInfoTail;

/*----------------------------------------------------------------------------*/
/* External Functions */
/*----------------------------------------------------------------------------*/
Expand All @@ -53,6 +74,7 @@ char * getsupportedVersion();
char * getsupplementaryDocs();
void supplementaryDocs();
void delete_supplementary_list();
void displaystruct();
SupplementaryDocs_t * get_global_spInfoHead(void);
WEBCFG_STATUS isSupplementaryDoc(char *subDoc);
#endif
Loading

0 comments on commit 24fa854

Please sign in to comment.