2 #define DBUS_COMPILATION /* cheat and use string etc. */
3 #include <dbus/dbus-string.h>
4 #include <dbus/dbus-sysdeps.h>
5 #include <dbus/dbus-internals.h>
6 #undef DBUS_COMPILATION
21 fprintf (stderr, "Give the file to decode as an argument\n");
25 _dbus_string_init_const (&filename, argv[1]);
27 if (!_dbus_string_init (&contents))
30 if (!_dbus_string_init (&decoded))
33 dbus_error_init (&error);
34 if (!_dbus_file_get_contents (&contents, &filename, &error))
36 fprintf (stderr, "Failed to load file: %s\n", error.message);
37 dbus_error_free (&error);
41 if (!_dbus_string_base64_decode (&contents, 0,
45 s = _dbus_string_get_const_data (&decoded);