aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/src/result-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libqcdm/src/result-private.h')
-rw-r--r--libqcdm/src/result-private.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/libqcdm/src/result-private.h b/libqcdm/src/result-private.h
index 0db63f5..382411c 100644
--- a/libqcdm/src/result-private.h
+++ b/libqcdm/src/result-private.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
- * Copyright (C) 2010 Red Hat, Inc.
+ * Copyright (C) 2011 Red Hat, Inc.
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -18,34 +18,36 @@
#ifndef LIBQCDM_RESULT_PRIVATE_H
#define LIBQCDM_RESULT_PRIVATE_H
-#include <glib.h>
-#include <glib-object.h>
#include "result.h"
-QCDMResult *qcdm_result_new (void);
+QcdmResult *qcdm_result_new (void);
-/* For these functions, 'key' *must* be a constant, not allocated and freed */
-
-void qcdm_result_add_string (QCDMResult *result,
+void qcdm_result_add_string (QcdmResult *result,
const char *key,
const char *str);
-void qcdm_result_add_uint8 (QCDMResult *result,
+void qcdm_result_add_u8 (QcdmResult *result,
const char *key,
- guint8 num);
+ u_int8_t num);
-void qcdm_result_add_uint32 (QCDMResult *result,
- const char *key,
- guint32 num);
+void qcdm_result_add_u8_array (QcdmResult *result,
+ const char *key,
+ const u_int8_t *array,
+ size_t array_len);
-void qcdm_result_add_boxed (QCDMResult *result,
- const char *key,
- GType btype,
- gpointer boxed);
+int qcdm_result_get_u8_array (QcdmResult *result,
+ const char *key,
+ const u_int8_t **out_val,
+ size_t *out_len);
-gboolean qcdm_result_get_boxed (QCDMResult *result,
+void qcdm_result_add_u16_array (QcdmResult *result,
const char *key,
- gpointer *out_val);
+ const u_int16_t *array,
+ size_t array_len);
+
+void qcdm_result_add_u32 (QcdmResult *result,
+ const char *key,
+ u_int32_t num);
#endif /* LIBQCDM_RESULT_PRIVATE_H */