From b5723cbd822b2359850c121ca69e682a607d91bd Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 3 Aug 2008 18:46:22 +0000 Subject: - pridany kapov patch na klavesy - widget na nastavovanie klaves sa rozsvieti, ked je aktivny git-svn-id: http://opensvn.csie.org/tuxanci_ng@189 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/exportFunction.c | 72 ----------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 src/base/exportFunction.c (limited to 'src/base/exportFunction.c') diff --git a/src/base/exportFunction.c b/src/base/exportFunction.c deleted file mode 100644 index 550e4ec..0000000 --- a/src/base/exportFunction.c +++ /dev/null @@ -1,72 +0,0 @@ - -#include -#include -#include -#include - -#include "main.h" -#include "list.h" -#include "exportFunction.h" - -typedef struct export_fce_item_struct -{ - char *name; - void *function; -} export_fce_item_t; - -static list_t *listExportFce; - -static export_fce_item_t* newExportFceItem(char *name, void *function) -{ - export_fce_item_t *new; - - new = malloc( sizeof(export_fce_item_t) ); - new->name = strdup(name); - new->function = function; - - return new; -} - -static void destroyExportFce(export_fce_item_t *p) -{ - free(p->name); - free(p); -} - -void initExortFunction() -{ - listExportFce = newList(); -} -void addToExportFce(char *name, void *function) -{ - printf("add to export function %s\n", name); - - addList(listExportFce, newExportFceItem(name, function) ); -} - -void* getExportFce(char *name) -{ - int i; - - for( i = 0 ; i < listExportFce->count ; i++ ) - { - export_fce_item_t *this; - - this = (export_fce_item_t *)listExportFce->list[i]; - - if( strcmp(this->name, name) == 0 ) - { - return this->function; - } - } - - return NULL; -} - -void quitExportFunction() -{ - destroyListItem(listExportFce, destroyExportFce); -} - - - -- cgit v1.2.3