sbus_codegen_tests_generated.h revision 1203e462650f035b0df2304075d60b9a99e36715
842ae4bd224140319ae7feec1872b93dfd491143fielding/* The following declarations are auto-generated from sbus_codegen_tests.xml */
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fielding#ifndef __SBUS_CODEGEN_TESTS_XML__
842ae4bd224140319ae7feec1872b93dfd491143fielding#define __SBUS_CODEGEN_TESTS_XML__
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fielding#include "sbus/sssd_dbus.h"
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd/* ------------------------------------------------------------------------
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * DBus Constants
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd *
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Various constants of interface and method names mostly for use by clients
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd */
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd/* constants for com.planetexpress.Ship */
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#define COM_PLANETEXPRESS_SHIP "com.planetexpress.Ship"
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#define COM_PLANETEXPRESS_SHIP_MOVEUNIVERSE "MoveUniverse"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define COM_PLANETEXPRESS_SHIP_CRASH_NOW "Crash"
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm#define COM_PLANETEXPRESS_SHIP_LAND "Land"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define COM_PLANETEXPRESS_SHIP_BECAMESENTIENT "BecameSentient"
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#define COM_PLANETEXPRESS_SHIP_COLOR "Color"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* constants for com.planetexpress.Pilot */
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd#define TEST_PILOT "com.planetexpress.Pilot"
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm#define TEST_PILOT_BLINK "Blink"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define TEST_PILOT_EJECT "Eject"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define TEST_PILOT_FULLNAME "FullName"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* ------------------------------------------------------------------------
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * DBus handlers
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * These structures are filled in by implementors of the different
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm * dbus interfaces to handle method calls.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Handler functions of type sbus_msg_handler_fn accept raw messages,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * other handlers are typed appropriately. If a handler that is
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * set to NULL is invoked it will result in a
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * org.freedesktop.DBus.Error.NotSupported error for the caller.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Handlers have a matching xxx_finish() function (unless the method has
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * accepts raw messages). These finish functions the
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * sbus_request_return_and_finish() with the appropriate arguments to
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * construct a valid reply. Once a finish function has been called, the
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * @dbus_req it was called with is freed and no longer valid.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* vtable for com.planetexpress.Ship */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingstruct com_planetexpress_Ship {
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding struct sbus_vtable vtable; /* derive from sbus_vtable */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding int (*MoveUniverse)(struct sbus_request *req, void *data, bool arg_smoothly, uint32_t arg_speed_factor);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding int (*crash_now)(struct sbus_request *req, void *data, const char *arg_where);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding sbus_msg_handler_fn Land;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding};
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* finish function for MoveUniverse */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingint com_planetexpress_Ship_MoveUniverse_finish(struct sbus_request *req, const char *arg_where_we_crashed);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* finish function for Crash */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingint com_planetexpress_Ship_crash_now_finish(struct sbus_request *req);
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm
11f2b9c5d2411bb84925addb4c2bf66e3a375383wrowe/* vtable for com.planetexpress.Pilot */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colmstruct test_pilot {
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm struct sbus_vtable vtable; /* derive from sbus_vtable */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm int (*Blink)(struct sbus_request *req, void *data, uint32_t arg_duration);
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm int (*Eject)(struct sbus_request *req, void *data, uint8_t arg_byte, bool arg_boolean, int16_t arg_int16, uint16_t arg_uint16, int32_t arg_int32, uint32_t arg_uint32, int64_t arg_int64, uint64_t arg_uint64, double arg_double, const char *arg_string, const char *arg_object_path, uint8_t arg_byte_array[], int len_byte_array, int16_t arg_int16_array[], int len_int16_array, uint16_t arg_uint16_array[], int len_uint16_array, int32_t arg_int32_array[], int len_int32_array, uint32_t arg_uint32_array[], int len_uint32_array, int64_t arg_int64_array[], int len_int64_array, uint64_t arg_uint64_array[], int len_uint64_array, double arg_double_array[], int len_double_array, const char *arg_string_array[], int len_string_array, const char *arg_object_path_array[], int len_object_path_array);
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm};
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbb/* finish function for Blink */
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbbint test_pilot_Blink_finish(struct sbus_request *req, bool arg_crashed);
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbb
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* finish function for Eject */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colmint test_pilot_Eject_finish(struct sbus_request *req, uint8_t arg_byte, bool arg_boolean, int16_t arg_int16, uint16_t arg_uint16, int32_t arg_int32, uint32_t arg_uint32, int64_t arg_int64, uint64_t arg_uint64, double arg_double, const char *arg_string, const char *arg_object_path, uint8_t arg_byte_array[], int len_byte_array, int16_t arg_int16_array[], int len_int16_array, uint16_t arg_uint16_array[], int len_uint16_array, int32_t arg_int32_array[], int len_int32_array, uint32_t arg_uint32_array[], int len_uint32_array, int64_t arg_int64_array[], int len_int64_array, uint64_t arg_uint64_array[], int len_uint64_array, double arg_double_array[], int len_double_array, const char *arg_string_array[], int len_string_array, const char *arg_object_path_array[], int len_object_path_array);
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm/* ------------------------------------------------------------------------
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * DBus Interface Metadata
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * These structure definitions are filled in with the information about
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * the interfaces, methods, properties and so on.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * The actual definitions are found in the accompanying C file next
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * to this header.
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* interface info for com.planetexpress.Ship */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingextern const struct sbus_interface_meta com_planetexpress_Ship_meta;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* interface info for com.planetexpress.Pilot */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colmextern const struct sbus_interface_meta test_pilot_meta;
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#endif /* __SBUS_CODEGEN_TESTS_XML__ */
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm