diff options
author | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-05-30 15:20:37 +0100 |
---|---|---|
committer | Ben Brewer <ben.brewer@codethink.co.uk> | 2014-06-02 15:53:42 +0100 |
commit | 5e7c9554d4685026e80c95e9efa8a4dae0f399de (patch) | |
tree | f1cce8664c77785ba9ca7008f1ebbd3809abba7e /tbdiff/tbdiff-xattrs.h | |
parent | 20d5fb340c6ad1e7b16c6dc17e3f6c364a5a5515 (diff) | |
download | tbdiff-5e7c9554d4685026e80c95e9efa8a4dae0f399de.tar.gz |
Remove extern keyword since it's not needed
The extern keyword is not needed since it's the default property
for a function, it also takes up extra space on the line which
leads to more wrapping.
Diffstat (limited to 'tbdiff/tbdiff-xattrs.h')
-rw-r--r-- | tbdiff/tbdiff-xattrs.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tbdiff/tbdiff-xattrs.h b/tbdiff/tbdiff-xattrs.h index ba4a79e..7052e1a 100644 --- a/tbdiff/tbdiff-xattrs.h +++ b/tbdiff/tbdiff-xattrs.h @@ -32,33 +32,33 @@ typedef struct tbd_xattrs_names { } tbd_xattrs_names_t; /* gets a list of the names of the file referenced by path */ -extern int tbd_xattrs_names(char const *path, tbd_xattrs_names_t *names_out); +int tbd_xattrs_names(char const *path, tbd_xattrs_names_t *names_out); /* frees up the INTERNAL resources of the list, doesn't free the list itself */ -extern void tbd_xattrs_names_free(tbd_xattrs_names_t *names); +void tbd_xattrs_names_free(tbd_xattrs_names_t *names); /* calls f with every name in the list */ -extern int tbd_xattrs_names_each(tbd_xattrs_names_t const *names, +int tbd_xattrs_names_each(tbd_xattrs_names_t const *names, int (*f)(char const *name, void *ud), void *ud); /* gets how many different attributes there are in the list */ -extern int tbd_xattrs_names_count(tbd_xattrs_names_t const *names, uint32_t *count); +int tbd_xattrs_names_count(tbd_xattrs_names_t const *names, uint32_t *count); /* puts the value of the attribute called name into *buf with size *bufsize * if *buf is NULL or *bufsize is 0 then memory will be allocated for it * if *buf was too small it will be reallocated * if it is successful, *buf will contain *valsize bytes of data */ -extern int tbd_xattrs_get(char const *path, char const* name, void **buf, +int tbd_xattrs_get(char const *path, char const* name, void **buf, size_t *bufsize, size_t *valsize); /* removes all attributes of the file referenced by path */ -extern int tbd_xattrs_removeall(char const *path); +int tbd_xattrs_removeall(char const *path); /* calls f for every attribute:value pair in the list */ typedef int (*tbd_xattrs_pairs_callback_t)(char const *name, void const *data, size_t size, void *ud); -extern int tbd_xattrs_pairs(tbd_xattrs_names_t const *names, char const *path, +int tbd_xattrs_pairs(tbd_xattrs_names_t const *names, char const *path, tbd_xattrs_pairs_callback_t f, void *ud); #endif /* !__TBDIFF_XATTRS_H__ */ |