56 lines
No EOL
1.7 KiB
C
56 lines
No EOL
1.7 KiB
C
#include "metadataops.h"
|
|
#include "StandardConstants.h"
|
|
#include "StringUtils.h"
|
|
|
|
/*
|
|
Name: clearMetaDataList
|
|
Process: recursively traverses list, frees dynamically allocated nodes
|
|
Function Input/Parameters: node opcode (const OpCodeType *)
|
|
Function Output/Parameters: none
|
|
Function Output/Returned: NULL (OpCodeType *)
|
|
Device Input/Device: none
|
|
Device Output/Device: none
|
|
Dependencies: ???
|
|
*/
|
|
OpCodeType *clearMetaDataList(OpCodeType *localPtr)
|
|
{
|
|
// return NULL (temp)
|
|
return NULL;
|
|
}
|
|
|
|
/*
|
|
Name: displayMetaData
|
|
Process: data dump/display of all opcode items
|
|
Function Input/Parameters: pointer to
|
|
head of opcode/metadata list (const OpCodeType *)
|
|
Function Output/Parameters: none
|
|
Function Output/Returned: none
|
|
Device Input/Device: none
|
|
Device Output/Device: none
|
|
Dependencies: ???
|
|
*/
|
|
void displayMetaData(const OpCodeType *localPtr)
|
|
{
|
|
// void function, no return.
|
|
}
|
|
|
|
/*
|
|
Name: getMetaData
|
|
Process: main driver function to upload, parse, and store list
|
|
of op code commands in a linked list
|
|
Function Input/Parameters: file name (const char *)
|
|
Function Output/Parameters: ptr to opcode linked list head ptr (OpCodeType **),
|
|
result msg of fct state after completion (char *)
|
|
Function Output/Returned: Boolean result of operation (bool)
|
|
Device Input/File: op code list uploaded
|
|
Device Output/Device: none
|
|
Dependencies: copyString fopen, getStringToDelimiter, compareString, fclose,
|
|
malloc, getOpCommand, updateStartCount, updateEndCount,
|
|
clearMetaDataList, free, addNode
|
|
*/
|
|
bool getMetaData(const char *fileName,
|
|
OpCodeType **opCodeDataHead, char *endStateMsg)
|
|
{
|
|
// return false (temp)
|
|
return false;
|
|
} |