Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   sd_bus_add_fallback    ( 3 )

объявление свойств и методов для пути D-Bus (declare properties and methods for a D-Bus path)

  Name  |    Synopsis    |  Description  |  Examples  |  Return value  |  Note  |  See also  |

Синопсис (Synopsis)

#include <systemd/sd-bus-vtable.h>

typedef int (*sd_bus_message_handler_t)(sd_bus_message *m, void *userdata, sd_bus_error *ret_error);

typedef int (*sd_bus_property_get_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *ret_error);

typedef int (*sd_bus_property_set_t)(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *value, void *userdata, sd_bus_error *ret_error);

typedef int (*sd_bus_object_find_t)(const char *path, const char *interface, void *userdata, void **ret_found, sd_bus_error *ret_error);

int sd_bus_add_object(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_message_handler_t callback, void *userdata);

int sd_bus_add_fallback(sd_bus *bus, sd_bus_slot **slot, const char *path, sd_bus_message_handler_t callback, void *userdata);

int sd_bus_add_object_vtable(sd_bus *bus, sd_bus_slot **slot, const char *path, const char *interface, const sd_bus_vtable *vtable, void *userdata);

int sd_bus_add_fallback_vtable(sd_bus *bus, sd_bus_slot **slot, const char *prefix, const char *interface, const sd_bus_vtable *vtable, sd_bus_object_find_t find, void *userdata);

int sd_bus_add_filter(sd_bus *bus, sd_bus_slot **slot, sd_bus_message_handler_t callback, void *userdata);

SD_BUS_VTABLE_START(flags)

SD_BUS_VTABLE_END

SD_BUS_METHOD_WITH_ARGS_OFFSET( member, args, result, handler, offset, flags)

SD_BUS_METHOD_WITH_ARGS( member, args, result, handler, flags)

SD_BUS_METHOD_WITH_NAMES_OFFSET( member, signature, in_names, result, out_names, handler, offset, flags)

SD_BUS_METHOD_WITH_NAMES( member, signature, in_names, result, out_names, handler, flags)

SD_BUS_METHOD_WITH_OFFSET( member, signature, result, handler, offset, flags)

SD_BUS_METHOD( member, signature, result, handler, flags)

SD_BUS_SIGNAL_WITH_ARGS( member, args, flags)

SD_BUS_SIGNAL_WITH_NAMES( member, signature, names, flags)

SD_BUS_SIGNAL( member, signature, flags)

SD_BUS_WRITABLE_PROPERTY( member, signature, get, set, offset, flags)

SD_BUS_PROPERTY( member, signature, get, offset, flags)

SD_BUS_PARAM(name) SD_BUS_ARGS(...) SD_BUS_RESULT(...) SD_BUS_NO_ARGS SD_BUS_NO_RESULT