update compat
[lttv.git] / ltt / marker-desc.h
CommitLineData
1dad7cdb 1#ifndef _LTT_MARKER_DESC_H
2#define _LTT_MARKER_DESC_H
3
4/*
5 * Marker description support header.
6 *
7 * Mathieu Desnoyers, August 2007
8 * License: LGPL.
9 */
10
29ec6786 11#include <stdio.h>
1dad7cdb 12#include <glib.h>
13#include <ltt/marker-field.h>
14
15//FIXME TEMP!
16static inline GQuark ltt_enum_string_get(struct marker_field *f,
17 gulong value)
18{
19 char tmp[1024] = "ENUM-";
29ec6786 20 sprintf(&tmp[sizeof("ENUM-") - 1], "%lu", value);
1dad7cdb 21 return g_quark_from_string(tmp);
22}
23
24#endif //_LTT_MARKER_DESC_H
This page took 0.036864 seconds and 4 git commands to generate.