aboutsummaryrefslogtreecommitdiff
path: root/prototype.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-12-05 23:51:17 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-08 22:55:29 +0100
commita5e983bd5555c496a209f3e3a48e2826940b09f5 (patch)
tree94dde736dcdbf64a7d1cb8235e9cd3a0fef6c122 /prototype.h
parenta94d9dfc864c261717de8859aa49bb758eccac90 (diff)
downloadltrace-a5e983bd5555c496a209f3e3a48e2826940b09f5.tar.gz
Add ownership tracking to prototype module
Diffstat (limited to 'prototype.h')
-rw-r--r--prototype.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/prototype.h b/prototype.h
index 9d36ef0..734b15f 100644
--- a/prototype.h
+++ b/prototype.h
@@ -195,19 +195,19 @@ void protolib_cache_destroy(struct protolib_cache *cache);
* This function returns either the loaded protolib, or NULL when
* there was an error. */
struct protolib *protolib_cache_search(struct protolib_cache *cache,
- const char *key,
+ const char *key, int own_key,
int allow_private);
/* This is similar to above, but instead of looking for the file to
* load in directories, the filename is given. */
struct protolib *protolib_cache_file(struct protolib_cache *cache,
- const char *filename);
+ const char *filename, int own_filename);
/* This is similar to protolib_cache_file, but the library to cache is
* given in argument. Returns 0 on success or a negative value on
* failure. PLIB is thereafter owned by CACHE. */
int protolib_cache_protolib(struct protolib_cache *cache,
- const char *filename,
+ const char *filename, int own_filename,
struct protolib *plib);
/* Single global prototype cache.