#include "gclibo.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <zlib.h>
Go to the source code of this file.
Data Structures | |
struct | H_ArrayData |
Structure to create a linked list for array data. More... | |
Typedefs | |
typedef struct H_ArrayData | ArrayNode |
Functions | |
void | H_InitArrayNode (ArrayNode *node) |
Function to initialize the memory of a new node. | |
GReturn | H_AddArray (ArrayNode *head, char *name, char *data) |
Add an ArrayData node to the linked list. | |
void | H_FreeArrays (ArrayNode *node) |
Frees all memory downstream of node. After passing list head to this function, all memory is freed and the head node is invalid. | |
GReturn | H_UploadArrayToList (GCon g, ArrayNode *head, char *name) |
Uploads a particular array and adds it to the linked list. | |
GReturn | H_CreateArrayNode (ArrayNode *head, char *name) |
Creates a buffer on the heap to write data, and adds it to the linked list. | |
GReturn | H_ArrayAddElement (ArrayNode *node, GCStringIn element) |
Adds an array element to an array node. | |
GReturn | H_DownloadArraysFromList (GCon g, ArrayNode *head, int fail) |
Walks through the array linked list, downloading each. | |
GReturn | H_WriteArrayCsv (ArrayNode *head, GCStringIn file_path) |
After filling the array list, this function is called to write out the CSV. | |
GReturn | H_ArrayDownloadFromMemory (GCon g, const char *array_data, int fail) |
Helper function to download a block of arrays to the controller. | |
GReturn | H_DownloadData (GCon g, const char *data, int fail) |
Helper function to send a string of commands to the controller, one at at time. | |
char * | H_FindSector (char *arr, int arr_size, int index) |
Function that returns a pointer to the start of the specified sector in the GCB data. | |
GReturn GCALL | GArrayDownloadFile (GCon g, GCStringIn file_path) |
Array download from file. | |
GReturn GCALL | GArrayUploadFile (GCon g, GCStringIn file_path, GCStringIn names) |
Array upload to file. | |
GReturn GCALL | GSetupDownloadFile (GCon g, GCStringIn file_path, GOption options, GCStringOut info, GSize info_len) |
Download a saved controller configuration from a file. | |
Function calls for uploading and downloading arrays with CSV files. Also contains functions for support of GSetupDownloadFile().
Definition in file arrays.c.