summaryrefslogtreecommitdiffstats
path: root/collection
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
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')
-rw-r--r--collection/elapi_collection.c19
-rw-r--r--collection/elapi_collection.h19
-rw-r--r--collection/elapi_collection_ut.c20
-rw-r--r--collection/elapi_debug.h19
-rw-r--r--collection/elapi_tools.c20
-rw-r--r--collection/elapi_tools.h20
-rw-r--r--collection/elapi_util.c22
-rw-r--r--collection/elapi_util.h20
8 files changed, 150 insertions, 9 deletions
diff --git a/collection/elapi_collection.c b/collection/elapi_collection.c
index f2614a6..50809ae 100644
--- a/collection/elapi_collection.c
+++ b/collection/elapi_collection.c
@@ -1,4 +1,21 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Implemenation of the collection interface.
+
+ 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/>.
+*/
#define _GNU_SOURCE
#include <string.h>
diff --git a/collection/elapi_collection.h b/collection/elapi_collection.h
index 9b9e8c3..361c0c6 100644
--- a/collection/elapi_collection.h
+++ b/collection/elapi_collection.h
@@ -1,4 +1,21 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Header file for collection interface.
+
+ 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/>.
+*/
#ifndef ELAPI_COLLECTION_H
#define ELAPI_COLLECTION_H
diff --git a/collection/elapi_collection_ut.c b/collection/elapi_collection_ut.c
index a7f55d5..242d1e2 100644
--- a/collection/elapi_collection_ut.c
+++ b/collection/elapi_collection_ut.c
@@ -1,4 +1,22 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Collection unit test.
+
+ 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>
diff --git a/collection/elapi_debug.h b/collection/elapi_debug.h
index 5f2c174..5515a92 100644
--- a/collection/elapi_debug.h
+++ b/collection/elapi_debug.h
@@ -1,4 +1,21 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Internal debugging header file.
+
+ 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/>.
+*/
#ifndef ELAPI_DEBUG_H
#define ELAPI_DEBUG_H
diff --git a/collection/elapi_tools.c b/collection/elapi_tools.c
index d1d00c0..879d694 100644
--- a/collection/elapi_tools.c
+++ b/collection/elapi_tools.c
@@ -1,4 +1,22 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Additional functions for printing and debugging collections.
+
+ 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 <malloc.h>
diff --git a/collection/elapi_tools.h b/collection/elapi_tools.h
index fd9bf63..9a5b39e 100644
--- a/collection/elapi_tools.h
+++ b/collection/elapi_tools.h
@@ -1,4 +1,22 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Header file for supplementary functions that provide
+ printing and debugging collections.
+
+ 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/>.
+*/
#ifndef ELAPI_TOOLS_H
#define ELAPI_TOOLS_H
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;
diff --git a/collection/elapi_util.h b/collection/elapi_util.h
index f701e5c..a379ec3 100644
--- a/collection/elapi_util.h
+++ b/collection/elapi_util.h
@@ -1,4 +1,22 @@
-/* Copyright */
+/*
+ ELAPI
+
+ Header files with 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/>.
+*/
+
#ifndef ELAPI_UTIL_H
#define ELAPI_UTIL_H