index a18d658f0134b5697397d5a23d6e08972d2ea526..0f38a11cd8234e5fad1aa25e2df49526951f9af7 100644 (file)
--- a/src/include/utils/data.h
+++ b/src/include/utils/data.h
/*
/*
- * syscollector - src/include/utils/data.h
+ * SysDB - src/include/utils/data.h
* Copyright (C) 2012 Sebastian 'tokkee' Harl <sh@tokkee.org>
* All rights reserved.
*
* Copyright (C) 2012 Sebastian 'tokkee' Harl <sh@tokkee.org>
* All rights reserved.
*
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SC_UTILS_DATA_H
-#define SC_UTILS_DATA_H 1
+#ifndef SDB_UTILS_DATA_H
+#define SDB_UTILS_DATA_H 1
#include "utils/time.h"
#include "utils/time.h"
#endif
enum {
#endif
enum {
- SC_TYPE_INTEGER = 1,
- SC_TYPE_DECIMAL,
- SC_TYPE_STRING,
- SC_TYPE_DATETIME,
- SC_TYPE_BINARY,
+ SDB_TYPE_INTEGER = 1,
+ SDB_TYPE_DECIMAL,
+ SDB_TYPE_STRING,
+ SDB_TYPE_DATETIME,
+ SDB_TYPE_BINARY,
};
/*
};
/*
- * sc_data_t:
+ * sdb_data_t:
* A datum retrieved from an arbitrary data source.
*
* The string and binary objects are managed by whoever creates the data
* A datum retrieved from an arbitrary data source.
*
* The string and binary objects are managed by whoever creates the data
typedef struct {
int type;
union {
typedef struct {
int type;
union {
- int64_t integer; /* SC_TYPE_INTEGER */
- double decimal; /* SC_TYPE_DECIMAL */
- const char *string; /* SC_TYPE_STRING */
- sc_time_t datetime; /* SC_TYPE_DATETIME */
+ int64_t integer; /* SDB_TYPE_INTEGER */
+ double decimal; /* SDB_TYPE_DECIMAL */
+ const char *string; /* SDB_TYPE_STRING */
+ sdb_time_t datetime; /* SDB_TYPE_DATETIME */
struct {
size_t length;
const unsigned char *datum;
struct {
size_t length;
const unsigned char *datum;
- } binary; /* SC_TYPE_BINARY */
+ } binary; /* SDB_TYPE_BINARY */
} data;
} data;
-} sc_data_t;
+} sdb_data_t;
#ifdef __cplusplus
} /* extern "C" */
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
-#endif /* ! SC_UTILS_DATA_H */
+#endif /* ! SDB_UTILS_DATA_H */
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */