2 * collectd - src/utils_cache.c
3 * Copyright (C) 2007,2008 Florian octo Forster
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; only version 2 of the License is applicable.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 * Florian octo Forster <octo at verplant.org>
25 #include "utils_avltree.h"
26 #include "utils_cache.h"
27 #include "utils_threshold.h"
28 #include "meta_data.h"
33 typedef struct cache_entry_s
35 char name[6 * DATA_MAX_NAME_LEN];
37 gauge_t *values_gauge;
39 /* Time contained in the package
40 * (for calculating rates) */
42 /* Time according to the local clock
43 * (for purging old entries) */
45 /* Interval in which the data is collected
46 * (for purding old entries) */
52 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+----
53 * ! 0 ! 1 ! 2 ! 3 ! 4 ! 5 ! 6 ! 7 ! 8 ! ...
54 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+----
55 * ! ds0 ! ds1 ! ds2 ! ds0 ! ds1 ! ds2 ! ds0 ! ds1 ! ds2 ! ...
56 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+----
57 * ! t = 0 ! t = 1 ! t = 2 ! ...
58 * +-----------------+-----------------+-----------------+----
61 size_t history_index; /* points to the next position to write to. */
62 size_t history_length;
67 static c_avl_tree_t *cache_tree = NULL;
68 static pthread_mutex_t cache_lock = PTHREAD_MUTEX_INITIALIZER;
70 static int cache_compare (const cache_entry_t *a, const cache_entry_t *b)
72 assert ((a != NULL) && (b != NULL));
73 return (strcmp (a->name, b->name));
74 } /* int cache_compare */
76 static cache_entry_t *cache_alloc (int values_num)
80 ce = (cache_entry_t *) malloc (sizeof (cache_entry_t));
83 ERROR ("utils_cache: cache_alloc: malloc failed.");
86 memset (ce, '\0', sizeof (cache_entry_t));
87 ce->values_num = values_num;
89 ce->values_gauge = calloc (values_num, sizeof (*ce->values_gauge));
90 ce->values_raw = calloc (values_num, sizeof (*ce->values_raw));
91 if ((ce->values_gauge == NULL) || (ce->values_raw == NULL))
93 sfree (ce->values_gauge);
94 sfree (ce->values_raw);
96 ERROR ("utils_cache: cache_alloc: calloc failed.");
101 ce->history_length = 0;
105 } /* cache_entry_t *cache_alloc */
107 static void cache_free (cache_entry_t *ce)
112 sfree (ce->values_gauge);
113 sfree (ce->values_raw);
115 if (ce->meta != NULL)
117 meta_data_destroy (ce->meta);
121 } /* void cache_free */
123 static int uc_send_notification (const char *name)
125 cache_entry_t *ce = NULL;
131 char *plugin_instance;
137 name_copy = strdup (name);
138 if (name_copy == NULL)
140 ERROR ("uc_send_notification: strdup failed.");
144 status = parse_identifier (name_copy, &host,
145 &plugin, &plugin_instance,
146 &type, &type_instance);
149 ERROR ("uc_send_notification: Cannot parse name `%s'", name);
153 /* Copy the associative members */
154 notification_init (&n, NOTIF_FAILURE, /* host = */ NULL,
155 host, plugin, plugin_instance, type, type_instance);
158 name_copy = host = plugin = plugin_instance = type = type_instance = NULL;
160 pthread_mutex_lock (&cache_lock);
163 * Set the time _after_ getting the lock because we don't know how long
164 * acquiring the lock takes and we will use this time later to decide
165 * whether or not the state is OKAY.
167 n.time = time (NULL);
169 status = c_avl_get (cache_tree, name, (void *) &ce);
172 pthread_mutex_unlock (&cache_lock);
177 /* Check if the entry has been updated in the meantime */
178 if ((n.time - ce->last_update) < (2 * ce->interval))
180 ce->state = STATE_OKAY;
181 pthread_mutex_unlock (&cache_lock);
186 ssnprintf (n.message, sizeof (n.message),
187 "%s has not been updated for %i seconds.", name,
188 (int) (n.time - ce->last_update));
190 pthread_mutex_unlock (&cache_lock);
192 plugin_dispatch_notification (&n);
195 } /* int uc_send_notification */
197 static void uc_check_range (const data_set_t *ds, cache_entry_t *ce)
201 for (i = 0; i < ds->ds_num; i++)
203 if (isnan (ce->values_gauge[i]))
205 else if (ce->values_gauge[i] < ds->ds[i].min)
206 ce->values_gauge[i] = NAN;
207 else if (ce->values_gauge[i] > ds->ds[i].max)
208 ce->values_gauge[i] = NAN;
210 } /* void uc_check_range */
212 static int uc_insert (const data_set_t *ds, const value_list_t *vl,
219 /* `cache_lock' has been locked by `uc_update' */
221 key_copy = strdup (key);
222 if (key_copy == NULL)
224 ERROR ("uc_insert: strdup failed.");
228 ce = cache_alloc (ds->ds_num);
232 ERROR ("uc_insert: cache_alloc (%i) failed.", ds->ds_num);
236 sstrncpy (ce->name, key, sizeof (ce->name));
238 for (i = 0; i < ds->ds_num; i++)
240 switch (ds->ds[i].type)
242 case DS_TYPE_COUNTER:
243 ce->values_gauge[i] = NAN;
244 ce->values_raw[i].counter = vl->values[i].counter;
248 ce->values_gauge[i] = vl->values[i].gauge;
249 ce->values_raw[i].gauge = vl->values[i].gauge;
253 ce->values_gauge[i] = NAN;
254 ce->values_raw[i].derive = vl->values[i].derive;
257 case DS_TYPE_ABSOLUTE:
258 ce->values_gauge[i] = NAN;
259 if (vl->interval > 0)
260 ce->values_gauge[i] = ((double) vl->values[i].absolute)
261 / ((double) vl->interval);
262 ce->values_raw[i].absolute = vl->values[i].absolute;
266 /* This shouldn't happen. */
267 ERROR ("uc_insert: Don't know how to handle data source type %i.",
270 } /* switch (ds->ds[i].type) */
273 /* Prune invalid gauge data */
274 uc_check_range (ds, ce);
276 ce->last_time = vl->time;
277 ce->last_update = time (NULL);
278 ce->interval = vl->interval;
279 ce->state = STATE_OKAY;
281 if (c_avl_insert (cache_tree, key_copy, ce) != 0)
284 ERROR ("uc_insert: c_avl_insert failed.");
288 DEBUG ("uc_insert: Added %s to the cache.", key);
290 } /* int uc_insert */
294 if (cache_tree == NULL)
295 cache_tree = c_avl_create ((int (*) (const void *, const void *))
301 int uc_check_timeout (void)
310 c_avl_iterator_t *iter;
313 pthread_mutex_lock (&cache_lock);
317 /* Build a list of entries to be flushed */
318 iter = c_avl_get_iterator (cache_tree);
319 while (c_avl_iterator_next (iter, (void *) &key, (void *) &ce) == 0)
321 /* If entry has not been updated, add to `keys' array */
322 if ((now - ce->last_update) >= (2 * ce->interval))
326 tmp = (char **) realloc ((void *) keys,
327 (keys_len + 1) * sizeof (char *));
330 ERROR ("uc_check_timeout: realloc failed.");
331 c_avl_iterator_destroy (iter);
333 pthread_mutex_unlock (&cache_lock);
338 keys[keys_len] = strdup (key);
339 if (keys[keys_len] == NULL)
341 ERROR ("uc_check_timeout: strdup failed.");
346 } /* while (c_avl_iterator_next) */
350 for (i = 0; i < keys_len; i++)
354 status = ut_check_interesting (keys[i]);
358 ERROR ("uc_check_timeout: ut_check_interesting failed.");
362 else if (status == 0) /* ``service'' is uninteresting */
364 DEBUG ("uc_check_timeout: %s is missing but ``uninteresting''",
367 status = c_avl_remove (cache_tree, keys[i],
368 (void *) &key, (void *) &ce);
371 ERROR ("uc_check_timeout: c_avl_remove (%s) failed.", keys[i]);
380 /* If we get here, the value is ``interesting''. Query the record from the
381 * cache and update the state field. */
382 if (c_avl_get (cache_tree, keys[i], (void *) &ce) != 0)
384 ERROR ("uc_check_timeout: cannot get data for %s from cache", keys[i]);
385 /* Do not free `keys[i]' so a notification is sent further down. */
390 if (status == 2) /* persist */
392 DEBUG ("uc_check_timeout: %s is missing, sending notification.",
394 ce->state = STATE_MISSING;
395 /* Do not free `keys[i]' so a notification is sent further down. */
397 else if (status == 1) /* do not persist */
399 if (ce->state == STATE_MISSING)
401 DEBUG ("uc_check_timeout: %s is missing but "
402 "notification has already been sent.",
404 /* Set `keys[i]' to NULL to no notification is sent. */
407 else /* (ce->state != STATE_MISSING) */
409 DEBUG ("uc_check_timeout: %s is missing, sending one notification.",
411 ce->state = STATE_MISSING;
412 /* Do not free `keys[i]' so a notification is sent further down. */
417 WARNING ("uc_check_timeout: ut_check_interesting (%s) returned "
418 "invalid status %i.",
423 /* Make really sure the next iteration doesn't work with this pointer.
424 * There have been too many bugs in the past.. :/ -- octo */
426 } /* for (keys[i]) */
428 c_avl_iterator_destroy (iter);
430 pthread_mutex_unlock (&cache_lock);
432 for (i = 0; i < keys_len; i++)
437 uc_send_notification (keys[i]);
444 } /* int uc_check_timeout */
446 int uc_update (const data_set_t *ds, const value_list_t *vl)
448 char name[6 * DATA_MAX_NAME_LEN];
449 cache_entry_t *ce = NULL;
450 int send_okay_notification = 0;
451 time_t update_delay = 0;
456 if (FORMAT_VL (name, sizeof (name), vl) != 0)
458 ERROR ("uc_update: FORMAT_VL failed.");
462 pthread_mutex_lock (&cache_lock);
464 status = c_avl_get (cache_tree, name, (void *) &ce);
465 if (status != 0) /* entry does not yet exist */
467 status = uc_insert (ds, vl, name);
468 pthread_mutex_unlock (&cache_lock);
473 assert (ce->values_num == ds->ds_num);
475 if (ce->last_time >= vl->time)
477 pthread_mutex_unlock (&cache_lock);
478 NOTICE ("uc_update: Value too old: name = %s; value time = %u; "
479 "last cache update = %u;",
480 name, (unsigned int) vl->time, (unsigned int) ce->last_time);
484 /* Send a notification (after the lock has been released) if we switch the
485 * state from something else to `okay'. */
486 if (ce->state == STATE_MISSING)
488 send_okay_notification = 1;
489 ce->state = STATE_OKAY;
490 update_delay = time (NULL) - ce->last_update;
493 for (i = 0; i < ds->ds_num; i++)
495 switch (ds->ds[i].type)
497 case DS_TYPE_COUNTER:
501 /* check if the counter has wrapped around */
502 if (vl->values[i].counter < ce->values_raw[i].counter)
504 if (ce->values_raw[i].counter <= 4294967295U)
505 diff = (4294967295U - ce->values_raw[i].counter)
506 + vl->values[i].counter;
508 diff = (18446744073709551615ULL - ce->values_raw[i].counter)
509 + vl->values[i].counter;
511 else /* counter has NOT wrapped around */
513 diff = vl->values[i].counter - ce->values_raw[i].counter;
516 ce->values_gauge[i] = ((double) diff)
517 / ((double) (vl->time - ce->last_time));
518 ce->values_raw[i].counter = vl->values[i].counter;
523 ce->values_raw[i].gauge = vl->values[i].gauge;
524 ce->values_gauge[i] = vl->values[i].gauge;
531 diff = vl->values[i].derive - ce->values_raw[i].derive;
533 ce->values_gauge[i] = ((double) diff)
534 / ((double) (vl->time - ce->last_time));
535 ce->values_raw[i].derive = vl->values[i].derive;
539 case DS_TYPE_ABSOLUTE:
540 ce->values_gauge[i] = ((double) vl->values[i].absolute)
541 / ((double) (vl->time - ce->last_time));
542 ce->values_raw[i].absolute = vl->values[i].absolute;
546 /* This shouldn't happen. */
547 pthread_mutex_unlock (&cache_lock);
548 ERROR ("uc_update: Don't know how to handle data source type %i.",
551 } /* switch (ds->ds[i].type) */
553 DEBUG ("uc_update: %s: ds[%i] = %lf", name, i, ce->values_gauge[i]);
556 /* Update the history if it exists. */
557 if (ce->history != NULL)
559 assert (ce->history_index < ce->history_length);
560 for (i = 0; i < ce->values_num; i++)
562 size_t hist_idx = (ce->values_num * ce->history_index) + i;
563 ce->history[hist_idx] = ce->values_gauge[i];
566 assert (ce->history_length > 0);
567 ce->history_index = (ce->history_index + 1) % ce->history_length;
570 /* Prune invalid gauge data */
571 uc_check_range (ds, ce);
573 ce->last_time = vl->time;
574 ce->last_update = time (NULL);
575 ce->interval = vl->interval;
577 pthread_mutex_unlock (&cache_lock);
579 if (send_okay_notification == 0)
582 /* Do not send okay notifications for uninteresting values, i. e. values for
583 * which no threshold is configured. */
584 status = ut_check_interesting (name);
588 /* Initialize the notification */
589 memset (&n, '\0', sizeof (n));
590 NOTIFICATION_INIT_VL (&n, vl, ds);
592 n.severity = NOTIF_OKAY;
595 ssnprintf (n.message, sizeof (n.message),
596 "Received a value for %s. It was missing for %u seconds.",
597 name, (unsigned int) update_delay);
599 plugin_dispatch_notification (&n);
602 } /* int uc_update */
604 int uc_get_rate_by_name (const char *name, gauge_t **ret_values, size_t *ret_values_num)
608 cache_entry_t *ce = NULL;
611 pthread_mutex_lock (&cache_lock);
613 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
617 /* remove missing values from getval */
618 if (ce->state == STATE_MISSING)
624 ret_num = ce->values_num;
625 ret = (gauge_t *) malloc (ret_num * sizeof (gauge_t));
628 ERROR ("utils_cache: uc_get_rate_by_name: malloc failed.");
633 memcpy (ret, ce->values_gauge, ret_num * sizeof (gauge_t));
639 DEBUG ("utils_cache: uc_get_rate_by_name: No such value: %s", name);
643 pthread_mutex_unlock (&cache_lock);
648 *ret_values_num = ret_num;
652 } /* gauge_t *uc_get_rate_by_name */
654 gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl)
656 char name[6 * DATA_MAX_NAME_LEN];
661 if (FORMAT_VL (name, sizeof (name), vl) != 0)
663 ERROR ("utils_cache: uc_get_rate: FORMAT_VL failed.");
667 status = uc_get_rate_by_name (name, &ret, &ret_num);
671 /* This is important - the caller has no other way of knowing how many
672 * values are returned. */
673 if (ret_num != (size_t) ds->ds_num)
675 ERROR ("utils_cache: uc_get_rate: ds[%s] has %i values, "
676 "but uc_get_rate_by_name returned %zu.",
677 ds->type, ds->ds_num, ret_num);
683 } /* gauge_t *uc_get_rate */
685 int uc_get_names (char ***ret_names, time_t **ret_times, size_t *ret_number)
687 c_avl_iterator_t *iter;
689 cache_entry_t *value;
692 time_t *times = NULL;
697 if ((ret_names == NULL) || (ret_number == NULL))
700 pthread_mutex_lock (&cache_lock);
702 iter = c_avl_get_iterator (cache_tree);
703 while (c_avl_iterator_next (iter, (void *) &key, (void *) &value) == 0)
707 /* remove missing values when list values */
708 if (value->state == STATE_MISSING)
711 if (ret_times != NULL)
715 tmp_times = (time_t *) realloc (times, sizeof (time_t) * (number + 1));
716 if (tmp_times == NULL)
722 times[number] = value->last_time;
725 temp = (char **) realloc (names, sizeof (char *) * (number + 1));
732 names[number] = strdup (key);
733 if (names[number] == NULL)
739 } /* while (c_avl_iterator_next) */
741 c_avl_iterator_destroy (iter);
742 pthread_mutex_unlock (&cache_lock);
748 for (i = 0; i < number; i++)
758 if (ret_times != NULL)
760 *ret_number = number;
763 } /* int uc_get_names */
765 int uc_get_state (const data_set_t *ds, const value_list_t *vl)
767 char name[6 * DATA_MAX_NAME_LEN];
768 cache_entry_t *ce = NULL;
769 int ret = STATE_ERROR;
771 if (FORMAT_VL (name, sizeof (name), vl) != 0)
773 ERROR ("uc_get_state: FORMAT_VL failed.");
774 return (STATE_ERROR);
777 pthread_mutex_lock (&cache_lock);
779 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
785 pthread_mutex_unlock (&cache_lock);
788 } /* int uc_get_state */
790 int uc_set_state (const data_set_t *ds, const value_list_t *vl, int state)
792 char name[6 * DATA_MAX_NAME_LEN];
793 cache_entry_t *ce = NULL;
796 if (FORMAT_VL (name, sizeof (name), vl) != 0)
798 ERROR ("uc_get_state: FORMAT_VL failed.");
799 return (STATE_ERROR);
802 pthread_mutex_lock (&cache_lock);
804 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
811 pthread_mutex_unlock (&cache_lock);
814 } /* int uc_set_state */
816 int uc_get_history_by_name (const char *name,
817 gauge_t *ret_history, size_t num_steps, size_t num_ds)
819 cache_entry_t *ce = NULL;
823 pthread_mutex_lock (&cache_lock);
825 status = c_avl_get (cache_tree, name, (void *) &ce);
828 pthread_mutex_unlock (&cache_lock);
832 if (((size_t) ce->values_num) != num_ds)
834 pthread_mutex_unlock (&cache_lock);
838 /* Check if there are enough values available. If not, increase the buffer
840 if (ce->history_length < num_steps)
845 tmp = realloc (ce->history, sizeof (*ce->history)
846 * num_steps * ce->values_num);
849 pthread_mutex_unlock (&cache_lock);
853 for (i = ce->history_length * ce->values_num;
854 i < (num_steps * ce->values_num);
859 ce->history_length = num_steps;
860 } /* if (ce->history_length < num_steps) */
862 /* Copy the values to the output buffer. */
863 for (i = 0; i < num_steps; i++)
868 if (i < ce->history_index)
869 src_index = ce->history_index - (i + 1);
871 src_index = ce->history_length + ce->history_index - (i + 1);
872 src_index = src_index * num_ds;
874 dst_index = i * num_ds;
876 memcpy (ret_history + dst_index, ce->history + src_index,
877 sizeof (*ret_history) * num_ds);
880 pthread_mutex_unlock (&cache_lock);
883 } /* int uc_get_history_by_name */
885 int uc_get_history (const data_set_t *ds, const value_list_t *vl,
886 gauge_t *ret_history, size_t num_steps, size_t num_ds)
888 char name[6 * DATA_MAX_NAME_LEN];
890 if (FORMAT_VL (name, sizeof (name), vl) != 0)
892 ERROR ("utils_cache: uc_get_history: FORMAT_VL failed.");
896 return (uc_get_history_by_name (name, ret_history, num_steps, num_ds));
897 } /* int uc_get_history */
899 int uc_get_hits (const data_set_t *ds, const value_list_t *vl)
901 char name[6 * DATA_MAX_NAME_LEN];
902 cache_entry_t *ce = NULL;
903 int ret = STATE_ERROR;
905 if (FORMAT_VL (name, sizeof (name), vl) != 0)
907 ERROR ("uc_get_state: FORMAT_VL failed.");
908 return (STATE_ERROR);
911 pthread_mutex_lock (&cache_lock);
913 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
919 pthread_mutex_unlock (&cache_lock);
922 } /* int uc_get_hits */
924 int uc_set_hits (const data_set_t *ds, const value_list_t *vl, int hits)
926 char name[6 * DATA_MAX_NAME_LEN];
927 cache_entry_t *ce = NULL;
930 if (FORMAT_VL (name, sizeof (name), vl) != 0)
932 ERROR ("uc_get_state: FORMAT_VL failed.");
933 return (STATE_ERROR);
936 pthread_mutex_lock (&cache_lock);
938 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
945 pthread_mutex_unlock (&cache_lock);
948 } /* int uc_set_hits */
950 int uc_inc_hits (const data_set_t *ds, const value_list_t *vl, int step)
952 char name[6 * DATA_MAX_NAME_LEN];
953 cache_entry_t *ce = NULL;
956 if (FORMAT_VL (name, sizeof (name), vl) != 0)
958 ERROR ("uc_get_state: FORMAT_VL failed.");
959 return (STATE_ERROR);
962 pthread_mutex_lock (&cache_lock);
964 if (c_avl_get (cache_tree, name, (void *) &ce) == 0)
968 ce->hits = ret + step;
971 pthread_mutex_unlock (&cache_lock);
974 } /* int uc_inc_hits */
977 * Meta data interface
979 /* XXX: This function will acquire `cache_lock' but will not free it! */
980 static meta_data_t *uc_get_meta (const value_list_t *vl) /* {{{ */
982 char name[6 * DATA_MAX_NAME_LEN];
983 cache_entry_t *ce = NULL;
986 status = FORMAT_VL (name, sizeof (name), vl);
989 ERROR ("utils_cache: uc_get_meta: FORMAT_VL failed.");
993 pthread_mutex_lock (&cache_lock);
995 status = c_avl_get (cache_tree, name, (void *) &ce);
998 pthread_mutex_unlock (&cache_lock);
1001 assert (ce != NULL);
1003 if (ce->meta == NULL)
1004 ce->meta = meta_data_create ();
1006 if (ce->meta == NULL)
1007 pthread_mutex_unlock (&cache_lock);
1010 } /* }}} meta_data_t *uc_get_meta */
1012 /* Sorry about this preprocessor magic, but it really makes this file much
1014 #define UC_WRAP(wrap_function) { \
1015 meta_data_t *meta; \
1017 meta = uc_get_meta (vl); \
1018 if (meta == NULL) return (-1); \
1019 status = wrap_function (meta, key); \
1020 pthread_mutex_unlock (&cache_lock); \
1023 int uc_meta_data_exists (const value_list_t *vl, const char *key)
1024 UC_WRAP (meta_data_exists)
1026 int uc_meta_data_delete (const value_list_t *vl, const char *key)
1027 UC_WRAP (meta_data_delete)
1030 /* We need a new version of this macro because the following functions take
1032 #define UC_WRAP(wrap_function) { \
1033 meta_data_t *meta; \
1035 meta = uc_get_meta (vl); \
1036 if (meta == NULL) return (-1); \
1037 status = wrap_function (meta, key, value); \
1038 pthread_mutex_unlock (&cache_lock); \
1041 int uc_meta_data_add_string (const value_list_t *vl,
1044 UC_WRAP(meta_data_add_string)
1045 int uc_meta_data_add_signed_int (const value_list_t *vl,
1048 UC_WRAP(meta_data_add_signed_int)
1049 int uc_meta_data_add_unsigned_int (const value_list_t *vl,
1052 UC_WRAP(meta_data_add_unsigned_int)
1053 int uc_meta_data_add_double (const value_list_t *vl,
1056 UC_WRAP(meta_data_add_double)
1057 int uc_meta_data_add_boolean (const value_list_t *vl,
1060 UC_WRAP(meta_data_add_boolean)
1062 int uc_meta_data_get_string (const value_list_t *vl,
1065 UC_WRAP(meta_data_get_string)
1066 int uc_meta_data_get_signed_int (const value_list_t *vl,
1069 UC_WRAP(meta_data_get_signed_int)
1070 int uc_meta_data_get_unsigned_int (const value_list_t *vl,
1073 UC_WRAP(meta_data_get_unsigned_int)
1074 int uc_meta_data_get_double (const value_list_t *vl,
1077 UC_WRAP(meta_data_get_double)
1078 int uc_meta_data_get_boolean (const value_list_t *vl,
1081 UC_WRAP(meta_data_get_boolean)
1084 /* vim: set sw=2 ts=8 sts=2 tw=78 : */