summaryrefslogtreecommitdiffstats
path: root/collection/elapi_util.c
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-02-25 13:59:43 -0500
committerDmitri Pal <dpal@redhat.com>2009-02-25 13:59:43 -0500
commitacb92e98ab01d5582d52737a7ad89919a00458aa (patch)
tree7c8bde4029ebe11027e69d9d90d09924dbed2a81 /collection/elapi_util.c
parent8c83881017e3815534f9d880c58b78a56ca4f971 (diff)
downloadelapi_draft-acb92e98ab01d5582d52737a7ad89919a00458aa.tar.gz
elapi_draft-acb92e98ab01d5582d52737a7ad89919a00458aa.tar.xz
elapi_draft-acb92e98ab01d5582d52737a7ad89919a00458aa.zip
Adding copyrights and a new sink. Interim commit.
Diffstat (limited to 'collection/elapi_util.c')
-rw-r--r--collection/elapi_util.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/collection/elapi_util.c b/collection/elapi_util.c
index 1224c25..e275703 100644
--- a/collection/elapi_util.c
+++ b/collection/elapi_util.c
@@ -1,4 +1,22 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Different serialization methods of the collection.
+
+ Copyright (C) Dmitri Pal <dpal@redhat.com> 2009
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include <stdio.h>
#include <string.h>
@@ -12,7 +30,7 @@
const char *get_type(int type)
{
switch(type) {
- case ELAPI_TYPE_STRING: return ELAPI_TYPE_NAME_STRING;
+ case ELAPI_TYPE_STRING: return ELAPI_TYPE_NAME_STRING;
case ELAPI_TYPE_INTEGER: return ELAPI_TYPE_NAME_INTEGER;
case ELAPI_TYPE_UNSIGNED: return ELAPI_TYPE_NAME_UNSIGNED;
case ELAPI_TYPE_LONG: return ELAPI_TYPE_NAME_LONG;