diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-19 19:52:23 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-19 19:52:23 +0300 |
commit | 03c27c8542d23a5e4072f0c080c396ce608c1d50 (patch) | |
tree | a80e7de3bffbf1e17d2f19dc8a50f9bdd3ececc5 /src/field.h | |
parent | 42bb3d37c156df14560347d4c7df3f0dd0551389 (diff) | |
download | magi-03c27c8542d23a5e4072f0c080c396ce608c1d50.tar magi-03c27c8542d23a5e4072f0c080c396ce608c1d50.tar.xz magi-03c27c8542d23a5e4072f0c080c396ce608c1d50.zip |
.
Diffstat (limited to 'src/field.h')
-rw-r--r-- | src/field.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/field.h b/src/field.h deleted file mode 100644 index 04c8411..0000000 --- a/src/field.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef MAGI_INCLUDED_FIELD -#define MAGI_INCLUDED_FIELD - - -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Form Field - */ -struct magi_field { - char * name; /* name: free(name) is valid. */ - char * data; /* data: free(data) is valid. */ - int len; /* Length of data. */ - struct magi_param_list * params; /* Only used if field is for file. */ -}; - -/* Null is valid "struct magi_field_list *" object. */ -struct magi_field_list { - struct magi_field_list * next; - struct magi_field item; -}; - -/* - * Adds *item to the begining of *list, item and list are dereferencable; - * Returns null in case of error. - */ -int magi_field_list_add(struct magi_field_list ** list, - struct magi_field * item); - -/* - * Searchs for first node in list: node.name == name, name is C-string; - * Returns node itself if succeed, otherwise result is null. - */ -struct magi_field * magi_field_list_get(struct magi_field_list * list, - const char * name); - -/* - * Destroys list; list is not valid after destruction. - */ -void magi_field_list_destroy(struct magi_field_list * list); - - -#endif |