Disallow producing NULL character with escape sequences
[platform/upstream/libxkbcommon.git] / test / test.h
index 628ec18..afeec78 100644 (file)
@@ -54,6 +54,12 @@ int
 test_key_seq_va(struct xkb_keymap *keymap, va_list args);
 
 char *
+test_makedir(const char *parent, const char *path);
+
+char *
+test_maketempdir(const char *template);
+
+char *
 test_get_path(const char *path_rel);
 
 char *
@@ -81,10 +87,8 @@ test_compile_rules(struct xkb_context *context, const char *rules,
                    const char *model, const char *layout, const char *variant,
                    const char *options);
 
-void
-test_print_keycode_state(struct xkb_state *state,
-                         struct xkb_compose_state *compose_state,
-                         xkb_keycode_t keycode);
 
-void
-test_print_state_changes(enum xkb_state_component changed);
+#ifdef _WIN32
+#define setenv(varname, value, overwrite) _putenv_s((varname), (value))
+#define unsetenv(varname) _putenv_s(varname, "")
+#endif