Skip to content

Commit

Permalink
api: missing __THROW on pub function decls
Browse files Browse the repository at this point in the history
missing __THROW on pub function decls needed for C++

Change-Id: Ia0ff09d311741e4cdc8ef171e07bbd56c24b9260
updates: bz#1193929
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
  • Loading branch information
kalebskeithley authored and amarts committed May 25, 2018
1 parent 4ae7f07 commit dcccfeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/src/glfs-handles.h
Expand Up @@ -325,7 +325,7 @@ glfs_xreaddirplus_get_object (struct glfs_xreaddirp_stat *xstat) __THROW
* explicitly using 'glfs_h_close()'
*/
struct glfs_object*
glfs_object_copy (struct glfs_object *src);
glfs_object_copy (struct glfs_object *src) __THROW
GFAPI_PUBLIC(glfs_object_copy, 3.11.0);

int glfs_h_lease (struct glfs *fs, struct glfs_object *object,
Expand Down
8 changes: 4 additions & 4 deletions api/src/glfs.h
Expand Up @@ -905,7 +905,7 @@ glfs_xreaddirplus_get_stat (struct glfs_xreaddirp_stat *xstat) __THROW
int
glfs_xreaddirplus_r (struct glfs_fd *glfd, uint32_t flags,
struct glfs_xreaddirp_stat **xstat_p,
struct dirent *ext, struct dirent **res);
struct dirent *ext, struct dirent **res) __THROW
GFAPI_PUBLIC(glfs_xreaddirplus_r, 3.11.0);

#define GFAPI_MAX_LOCK_OWNER_LEN 255
Expand Down Expand Up @@ -934,7 +934,7 @@ glfs_xreaddirplus_r (struct glfs_fd *glfd, uint32_t flags,
* 0: SUCCESS
* -1: FAILURE
*/
int glfs_fd_set_lkowner (glfs_fd_t *glfd, void *data, int len);
int glfs_fd_set_lkowner (glfs_fd_t *glfd, void *data, int len) __THROW
GFAPI_PUBLIC(glfs_fd_set_lkowner, 3.10.7);

/*
Expand Down Expand Up @@ -1055,7 +1055,7 @@ typedef void (*glfs_upcall_cbk) (struct glfs_upcall *up_arg, void *data);
*/
int
glfs_upcall_register (struct glfs *fs, uint32_t event_list,
glfs_upcall_cbk cbk, void *data);
glfs_upcall_cbk cbk, void *data) __THROW
GFAPI_PUBLIC(glfs_upcall_register, 3.13.0);

/*
Expand All @@ -1082,7 +1082,7 @@ glfs_upcall_register (struct glfs *fs, uint32_t event_list,
* -1: FAILURE
*/
int
glfs_upcall_unregister (struct glfs *fs, uint32_t event_list);
glfs_upcall_unregister (struct glfs *fs, uint32_t event_list) __THROW
GFAPI_PUBLIC(glfs_upcall_unregister, 3.13.0);

/* Lease Types */
Expand Down

0 comments on commit dcccfeb

Please sign in to comment.