mightymandel v16

GPU-based Mandelbrot set explorer

metadata.h
Go to the documentation of this file.
1 // mightymandel -- GPU-based Mandelbrot Set explorer
2 // Copyright (C) 2012,2013,2014,2015 Claude Heiland-Allen
3 // License GPL3+ http://www.gnu.org/licenses/gpl.html
4 
5 #ifndef METADATA_H
6 #define METADATA_H 1
7 
8 #include <stdbool.h>
9 
13 struct metadata;
14 
20 struct metadata *metadata_new();
21 
27 void metadata_delete(struct metadata *s);
28 
38 const char *metadata_lookup(struct metadata *s, const char *key);
39 
49 void metadata_update(struct metadata *s, const char *key, const char *value);
50 
59 void metadata_remove(struct metadata *s, const char *key);
60 
68 int metadata_strlen(const struct metadata *s, const char *prefix);
69 
79 bool metadata_string(const struct metadata *s, const char *prefix, char *string, int length);
80 
81 #endif