[totem-pl-parser/wip/hadess/cancelled-return] tests: Move AsyncParseData earlier
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/cancelled-return] tests: Move AsyncParseData earlier
- Date: Tue, 21 Jun 2022 09:08:46 +0000 (UTC)
commit b12ca25986cc8d7da7dec73894a36f5478cb3a3e
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 21 11:06:39 2022 +0200
tests: Move AsyncParseData earlier
We'll want to use it earlier in the file.
plparse/tests/parser.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/plparse/tests/parser.c b/plparse/tests/parser.c
index 7e930d1..8281f28 100644
--- a/plparse/tests/parser.c
+++ b/plparse/tests/parser.c
@@ -34,6 +34,12 @@ static GMainLoop *loop = NULL;
static char **uris = NULL;
static gboolean http_supported = FALSE;
+typedef struct {
+ int count;
+ GMainLoop *mainloop;
+ char *uri;
+} AsyncParseData;
+
static char *
test_relative_real (const char *uri, const char *output)
{
@@ -667,13 +673,6 @@ test_parsing_not_really_php_but_html_instead (void)
g_free (uri);
}
-
-typedef struct {
- int count;
- GMainLoop *mainloop;
- char *uri;
-} AsyncParseData;
-
static void
parse_async_ready (GObject *pl, GAsyncResult *result, gpointer userdata)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]