Unstatic arg_count_for_signature and get_next_argument

Expose these to other files using wayland-private.h, so wayland-client.c
can walk NULLables properly.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone 2012-07-23 19:54:40 +01:00 committed by Kristian Høgsberg
parent a2c79b14a1
commit efe23443d8
2 changed files with 13 additions and 7 deletions

View file

@ -404,12 +404,7 @@ wl_connection_put_fd(struct wl_connection *connection, int32_t fd)
return 0;
}
struct argument_details {
char type;
int nullable;
};
static const char *
const char *
get_next_argument(const char *signature, struct argument_details *details)
{
if (*signature == '?') {
@ -422,7 +417,7 @@ get_next_argument(const char *signature, struct argument_details *details)
return signature + 1;
}
static int
int
arg_count_for_signature(const char *signature)
{
int count = 0;