sbus_codegen_tests_generated.h revision c2cc119de8eac712c040b3993f41c967ff2278de
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* The following declarations are auto-generated from sbus_codegen_tests.xml */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#ifndef __SBUS_CODEGEN_TESTS_XML__
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainen#define __SBUS_CODEGEN_TESTS_XML__
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#include "sbus/sssd_dbus.h"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* ------------------------------------------------------------------------
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * DBus Constants
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen *
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen * Various constants of interface and method names mostly for use by clients
a40d26f83af808a0ea1e212c001d682a96d870b0Timo Sirainen */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen/* constants for com.planetexpress.Ship */
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define COM_PLANETEXPRESS_SHIP "com.planetexpress.Ship"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define COM_PLANETEXPRESS_SHIP_MOVEUNIVERSE "MoveUniverse"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define COM_PLANETEXPRESS_SHIP_CRASH_NOW "Crash"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define COM_PLANETEXPRESS_SHIP_BECAMESENTIENT "BecameSentient"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define COM_PLANETEXPRESS_SHIP_COLOR "Color"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen/* constants for com.planetexpress.Pilot */
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define TEST_PILOT "com.planetexpress.Pilot"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen#define TEST_PILOT_FULLNAME "FullName"
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen/* ------------------------------------------------------------------------
bbf796c17f02538058d7559bfe96d677e5b55015Timo Sirainen * DBus Vtable handler structures
8aacc9e7c84f8376822823ec98c2f551d4919b2eTimo Sirainen *
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen * These structures are filled in by implementors of the different
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen * dbus interfaces to handle method calls.
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen *
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * Handler functions of type sbus_msg_handler_fn accept raw messages,
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen * other handlers will be typed appropriately. If a handler that is
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen * set to NULL is invoked it will result in a
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen * org.freedesktop.DBus.Error.NotSupported error for the caller.
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen */
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen/* vtable for com.planetexpress.Ship */
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainenstruct com_planetexpress_Ship {
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen struct sbus_vtable vtable; /* derive from sbus_vtable */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen sbus_msg_handler_fn MoveUniverse;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen sbus_msg_handler_fn crash_now;
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen};
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen/* ------------------------------------------------------------------------
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen * DBus Interface Metadata
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen *
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * These structure definitions are filled in with the information about
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * the interfaces, methods, properties and so on.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen *
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * The actual definitions are found in the accompanying C file next
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen * to this header.
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen */
d482b35af87f5fd872bad007da0475813a401a49Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* interface info for com.planetexpress.Ship */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenextern const struct sbus_interface_meta com_planetexpress_Ship_meta;
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen/* interface info for com.planetexpress.Pilot */
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainenextern const struct sbus_interface_meta test_pilot_meta;
e06c0b65c16ccce69bbee009ead14d7d3d17a256Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#endif /* __SBUS_CODEGEN_TESTS_XML__ */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen