gdebugcontrollerdbus.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* GIO - GLib Input, Output and Streaming Library
  2. *
  3. * Copyright © 2021 Endless OS Foundation, LLC
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General
  18. * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  19. *
  20. * SPDX-License-Identifier: LGPL-2.1-or-later
  21. */
  22. #ifndef __G_DEBUG_CONTROLLER_DBUS_H__
  23. #define __G_DEBUG_CONTROLLER_DBUS_H__
  24. #include <glib.h>
  25. #include <glib-object.h>
  26. G_BEGIN_DECLS
  27. #define G_TYPE_DEBUG_CONTROLLER_DBUS (g_debug_controller_dbus_get_type ())
  28. GIO_AVAILABLE_IN_2_72
  29. G_DECLARE_DERIVABLE_TYPE (GDebugControllerDBus, g_debug_controller_dbus, G, DEBUG_CONTROLLER_DBUS, GObject)
  30. /**
  31. * GDebugControllerDBusClass:
  32. * @parent_class: The parent class.
  33. * @authorize: Default handler for the #GDebugControllerDBus::authorize signal.
  34. *
  35. * The virtual function table for #GDebugControllerDBus.
  36. *
  37. * Since: 2.72
  38. */
  39. struct _GDebugControllerDBusClass
  40. {
  41. GObjectClass parent_class;
  42. gboolean (*authorize) (GDebugControllerDBus *controller,
  43. GDBusMethodInvocation *invocation);
  44. gpointer padding[12];
  45. };
  46. GIO_AVAILABLE_IN_2_72
  47. GDebugControllerDBus *g_debug_controller_dbus_new (GDBusConnection *connection,
  48. GCancellable *cancellable,
  49. GError **error);
  50. GIO_AVAILABLE_IN_2_72
  51. void g_debug_controller_dbus_stop (GDebugControllerDBus *self);
  52. G_END_DECLS
  53. #endif /* __G_DEBUG_CONTROLLER_DBUS_H__ */