mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
Use int instead of bool as result
Prefer to use an int return from a function instead of bool because it can contain more info about failures.
This commit is contained in:
parent
e5e360d5df
commit
4d6ac37398
38 changed files with 308 additions and 297 deletions
|
|
@ -31,20 +31,15 @@ struct pw_daemon_config {
|
|||
struct spa_list commands;
|
||||
};
|
||||
|
||||
struct pw_daemon_config *
|
||||
pw_daemon_config_new(void);
|
||||
struct pw_daemon_config * pw_daemon_config_new(void);
|
||||
|
||||
void
|
||||
pw_daemon_config_free(struct pw_daemon_config *config);
|
||||
void pw_daemon_config_free(struct pw_daemon_config *config);
|
||||
|
||||
bool
|
||||
pw_daemon_config_load_file(struct pw_daemon_config *config, const char *filename, char **err);
|
||||
int pw_daemon_config_load_file(struct pw_daemon_config *config, const char *filename, char **err);
|
||||
|
||||
bool
|
||||
pw_daemon_config_load(struct pw_daemon_config *config, char **err);
|
||||
int pw_daemon_config_load(struct pw_daemon_config *config, char **err);
|
||||
|
||||
bool
|
||||
pw_daemon_config_run_commands(struct pw_daemon_config *config, struct pw_core *core);
|
||||
int pw_daemon_config_run_commands(struct pw_daemon_config *config, struct pw_core *core);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue