linker: privatize prio_heap and babeltrace_types
[babeltrace.git] / types / types.c
index b9576ea3109ab98e07ff3473f23983a5a0d77e14..d3c204aeed8f2a20c8d084ecd70c869414f2fb4b 100644 (file)
@@ -5,7 +5,9 @@
  *
  * Types registry.
  *
- * Copyright 2010, 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
+ *
+ * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -19,7 +21,8 @@
  */
 
 #include <babeltrace/format.h>
-#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
+#include <babeltrace/types.h>
 #include <limits.h>
 #include <glib.h>
 #include <errno.h>
@@ -298,7 +301,7 @@ struct declaration_scope *
 
        scope->typedef_declarations = g_hash_table_new_full(g_direct_hash,
                                        g_direct_equal, NULL,
-                                       (GDestroyNotify) definition_unref);
+                                       (GDestroyNotify) declaration_unref);
        scope->struct_declarations = g_hash_table_new_full(g_direct_hash,
                                        g_direct_equal, NULL,
                                        (GDestroyNotify) declaration_unref);
@@ -597,7 +600,6 @@ void free_definition_scope(struct definition_scope *scope)
        g_free(scope);
 }
 
-static
 struct definition *lookup_definition(struct definition *definition,
                                     const char *field_name)
 {
This page took 0.024257 seconds and 4 git commands to generate.