diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-02-05 08:38:27 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-02-05 08:38:27 +0100 |
commit | 14d771b90f5a7d3887e5e900d1fb4737477ad305 (patch) | |
tree | f382e3359d20916ae60d28361e59635e373224f8 /libqcdm/src/result-private.h | |
parent | a09050a7f63a262bf90dcb1c7a41f9cfd205db43 (diff) |
Imported Upstream version 0.5.2.0upstream/0.5.2.0
Diffstat (limited to 'libqcdm/src/result-private.h')
-rw-r--r-- | libqcdm/src/result-private.h | 38 |
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 */ |