diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-20 00:39:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-20 00:39:02 +0200 |
commit | d2b172dd9cdfaf0c61fbca4368d3c58250f8f927 (patch) | |
tree | edc8160427bdcd2ce506c7914a25b8d5aaede4c3 /include | |
parent | 5175feba445db857b258ccee891fe7ae22919de1 (diff) |
Return status code from dbus instead of true/false
Diffstat (limited to 'include')
-rw-r--r-- | include/dbus.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/dbus.h b/include/dbus.h index d2651f2..6978634 100644 --- a/include/dbus.h +++ b/include/dbus.h @@ -35,9 +35,10 @@ bool gsr_dbus_init(gsr_dbus *self, const char *screencast_restore_token); void gsr_dbus_deinit(gsr_dbus *self); /* The follow functions should be called in order to setup ScreenCast properly */ -bool gsr_dbus_screencast_create_session(gsr_dbus *self, char **session_handle); -bool gsr_dbus_screencast_select_sources(gsr_dbus *self, const char *session_handle, gsr_portal_capture_type capture_type, gsr_portal_cursor_mode cursor_mode); -bool gsr_dbus_screencast_start(gsr_dbus *self, const char *session_handle, uint32_t *pipewire_node); +/* These functions that return an int return the response status code */ +int gsr_dbus_screencast_create_session(gsr_dbus *self, char **session_handle); +int gsr_dbus_screencast_select_sources(gsr_dbus *self, const char *session_handle, gsr_portal_capture_type capture_type, gsr_portal_cursor_mode cursor_mode); +int gsr_dbus_screencast_start(gsr_dbus *self, const char *session_handle, uint32_t *pipewire_node); bool gsr_dbus_screencast_open_pipewire_remote(gsr_dbus *self, const char *session_handle, int *pipewire_fd); const char* gsr_dbus_screencast_get_restore_token(gsr_dbus *self); |