aboutsummaryrefslogtreecommitdiff
path: root/prototype.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-12-05 01:46:13 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-08 22:55:28 +0100
commit08cdf328add7b723b94b151866e5d0173662f6c6 (patch)
tree02d1f28917d98824e18862771ad657892b59bd73 /prototype.h
parentf70074cd77f82182cb234b673cad3e9618a52843 (diff)
downloadltrace-08cdf328add7b723b94b151866e5d0173662f6c6.tar.gz
Start using per-library config files
We have one global cache, initialized in init_global_config. output.c was adjusted to load per-library config files on demand from that cache.
Diffstat (limited to 'prototype.h')
-rw-r--r--prototype.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/prototype.h b/prototype.h
index 583b9f6..9d36ef0 100644
--- a/prototype.h
+++ b/prototype.h
@@ -210,9 +210,15 @@ int protolib_cache_protolib(struct protolib_cache *cache,
const char *filename,
struct protolib *plib);
-/* Single global prototype library.
- * XXX Eventually each struct library should have its own prototype
- * library, so that there is one prototype library per DSO. */
-extern struct protolib g_prototypes;
+/* Single global prototype cache.
+ *
+ * XXX Eventually each ABI should have its own cache. The idea is
+ * that there's one per-ABI config file that all others use for
+ * elementary typedefs (long, char, size_t). Ltrace then only deals
+ * in fixed-width integral types (and pointers etc.). */
+extern struct protolib_cache g_protocache;
+
+void init_global_config(void);
+void destroy_global_config(void);
#endif /* _PROTOTYPE_H_ */