aboutsummaryrefslogtreecommitdiff
path: root/dict.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-05-05 00:07:38 +0200
committerPetr Machata <pmachata@redhat.com>2012-05-05 00:10:32 +0200
commita11cbede4711e1efe2d6fb0a8a5b2050b2fe941c (patch)
tree192fada824d2d3e0421237401f2a513a61562dbc /dict.h
parentc0ab28673d03bdf8f264556bde0d3806ea062322 (diff)
downloadltrace-a11cbede4711e1efe2d6fb0a8a5b2050b2fe941c.tar.gz
Add include guards and copyright notices to dict.c and dict.h
Diffstat (limited to 'dict.h')
-rw-r--r--dict.h32
1 files changed, 30 insertions, 2 deletions
diff --git a/dict.h b/dict.h
index f41011a..fcc1acb 100644
--- a/dict.h
+++ b/dict.h
@@ -1,6 +1,32 @@
/*
- Dictionary based on code by Morten Eriksen <mortene@sim.no>.
-*/
+ * This file is part of ltrace.
+ * Copyright (C) 2011,2012 Petr Machata
+ * Copyright (C) 2003,2004,2008,2009 Juan Cespedes
+ * Copyright (C) 2006 Ian Wienand
+ * Copyright (C) ???? Morten Eriksen <mortene@sim.no>
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef _DICT_H_
+#define _DICT_H_
+
+/*
+ * Dictionary based on code by Morten Eriksen <mortene@sim.no>.
+ */
typedef struct dict Dict;
@@ -25,3 +51,5 @@ extern Dict * dict_clone2(Dict * old,
void * (* key_clone)(void * key, void * data),
void * (* value_clone)(void * value, void * data),
void * data);
+
+#endif /* _DICT_H_ */