From 488cf397922d42b59c88c0a028eca8c26c4e6293 Mon Sep 17 00:00:00 2001 From: Tectu Date: Wed, 27 Jun 2012 10:11:42 +0200 Subject: [PATCH] some name changes --- gui.c | 12 ++++++------ gui.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gui.c b/gui.c index a1dc3431..ef31502f 100644 --- a/gui.c +++ b/gui.c @@ -2,7 +2,7 @@ static struct guiNode_t *firstGUI = NULL; -static uint16_t addNode(struct guiNode_t *newNode) { +static uint8_t addElement(struct guiNode_t *newNode) { struct guiNode_t *new; if(firstGUI == NULL) { @@ -29,7 +29,7 @@ static uint16_t addNode(struct guiNode_t *newNode) { return 1; } -static uint8_t deleteNode(char *name) { +static uint8_t deleteElement(char *name) { struct guiNode_t *pointer, *pointer1; if(firstGUI != NULL) { @@ -60,7 +60,7 @@ static uint8_t deleteNode(char *name) { return 0; // not successful } -void guiPrintNodes(BaseSequentialStream *chp) { +void guiPrintElements(BaseSequentialStream *chp) { struct guiNode_t *pointer = firstGUI; chprintf(chp, "\r\n\nguiNodes:\r\n\n"); @@ -152,7 +152,7 @@ uint8_t guiDrawButton(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, char * newNode->active = active; newNode->state = state; - if(addNode(newNode) != 1) + if(addElement(newNode) != 1) return 0; lcdDrawRectString(x0, y0, x1, y1, str, fontColor, buttonColor); @@ -179,7 +179,7 @@ uint8_t guiDrawSlider(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_ newNode->active = active; newNode->orientation = orientation; - if(addNode(newNode) != 1) + if(addElement(newNode) != 1) return 0; lcdDrawRect(x0, y0, x1, y1, frame, frameColor); @@ -205,7 +205,7 @@ uint8_t guiDrawWheel(uint16_t x0, uint16_t y0, uint16_t radius1, uint16_t radius newNode->active = active; newNode->state = value; - if(addNode(newNode) != 1) + if(addElement(newNode) != 1) return 0; // lcdDraw functions diff --git a/gui.h b/gui.h index 18251291..934c2bee 100644 --- a/gui.h +++ b/gui.h @@ -46,7 +46,7 @@ Thread *guiInit(uint16_t interval, tprio_t priority); * * return: none */ -void guiPrintNode(BaseSequentialStream *chp); +void guiPrintElements(BaseSequentialStream *chp); /* * Description: deletes a GUI element from the linked list