tests: Add GSpawnError-alike to SLetter
authorColin Walters <walters@verbum.org>
Mon, 2 Jul 2012 20:15:05 +0000 (16:15 -0400)
committerColin Walters <walters@verbum.org>
Mon, 2 Jul 2012 20:19:11 +0000 (16:19 -0400)
See https://bugzilla.gnome.org/show_bug.cgi?id=637025 for motivation.

tests/scanner/sletter.c
tests/scanner/sletter.h

index 81746d7..09f3cfd 100644 (file)
@@ -7,3 +7,9 @@ s_hello (void)
 {
   g_print ("hello world\n");
 }
+
+GQuark
+s_spawn_error_quark (void)
+{
+  return g_quark_from_static_string ("s-spawn-error");
+}
index 09965b8..24dfd68 100644 (file)
@@ -10,4 +10,13 @@ typedef struct {
 
 void s_hello (void);
 
+/* Like GSpawnError; not registered with GType */
+typedef enum
+{
+  S_SPAWN_ERROR_CODE1 = 1,
+  S_SPAWN_ERROR_CODE2 = 2,
+  S_SPAWN_ERROR_CODE3 = 3
+} SSpawnError;
+GQuark s_spawn_error_quark (void);
+
 #endif