Unstatic arg_count_for_signature and get_next_argument
authorDaniel Stone <daniel@fooishbar.org>
Mon, 23 Jul 2012 18:54:40 +0000 (19:54 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 24 Jul 2012 00:15:28 +0000 (20:15 -0400)
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>
src/connection.c
src/wayland-private.h

index f4f881e..b228c92 100644 (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;
index 2113d83..f9fcc96 100644 (file)
@@ -81,6 +81,17 @@ struct wl_closure {
        uint32_t buffer[0];
 };
 
+struct argument_details {
+       char type;
+       int nullable;
+};
+
+const char *
+get_next_argument(const char *signature, struct argument_details *details);
+
+int
+arg_count_for_signature(const char *signature);
+
 struct wl_closure *
 wl_closure_vmarshal(struct wl_object *sender,
                    uint32_t opcode, va_list ap,