test-bus-marshal.c revision de1c301ed165eb4d04a0c9d4babe97912b5233bb
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2013 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <assert.h>
#include <stdlib.h>
#include <byteswap.h>
#ifdef HAVE_GLIB
#endif
#include <dbus.h>
#include "log.h"
#include "util.h"
#include "sd-bus.h"
#include "bus-message.h"
int r;
const char *x, *y, *z, *a, *b, *c;
uint8_t u, v;
char *h;
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
assert_se(r >= 0);
r = sd_bus_message_close_container(m);
assert_se(r >= 0);
r = message_seal(m, 4711);
assert_se(r >= 0);
message_dump(m);
assert_se(r >= 0);
assert_se(h);
free(h);
#ifdef HAVE_GLIB
{
GDBusMessage *g;
char *p;
g_type_init();
p = g_dbus_message_print(g, 0);
log_info("%s", p);
g_free(p);
g_object_unref(g);
}
#endif
{
DBusMessage *w;
if (!w) {
} else
}
/* r = sd_bus_message_read(m, "sas", &x, 5, &y, &z, &a, &b, &c); */
/* assert_se(r >= 0); */
/* r = sd_bus_message_read(m, "a{yv}", 2, */
/* &u, "s", &x, */
/* &v, "s", &y); */
return 0;
}