Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 5fc17589 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Align functions in headers, easier for my small eyes

parent 114e5c82
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!65Resolve "Sync from kurisu"
...@@ -21,28 +21,24 @@ bool command_status(struct lkt_state *srv, size_t c); ...@@ -21,28 +21,24 @@ bool command_status(struct lkt_state *srv, size_t c);
bool command_next (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr); bool command_next (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr);
bool command_pause (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr); bool command_pause (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr);
bool command_previous(sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr); bool command_previous(sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr);
bool command_play(sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], bool command_play (sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
enum mpd_idle_flag *watch_mask_ptr);
bool command_stop (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr); bool command_stop (sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr);
bool command_set_pos(sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr, int index); bool command_set_pos(sqlite3 *db, struct lkt_win *win, enum mpd_idle_flag *watch_mask_ptr, int index);
/* The queue */ /* The queue */
bool command_add(sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], bool command_add (sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
enum mpd_idle_flag *watch_mask_ptr); bool command_addid (sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
bool command_addid(sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX],
enum mpd_idle_flag *watch_mask_ptr);
bool command_del (sqlite3 *db, struct lkt_win *win, char *pos_range, enum mpd_idle_flag *watch_mask_ptr); bool command_del (sqlite3 *db, struct lkt_win *win, char *pos_range, enum mpd_idle_flag *watch_mask_ptr);
bool command_delid (sqlite3 *db, struct lkt_win *win, char *id, enum mpd_idle_flag *watch_mask_ptr); bool command_delid (sqlite3 *db, struct lkt_win *win, char *id, enum mpd_idle_flag *watch_mask_ptr);
bool command_clear (sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr); bool command_clear (sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr);
bool command_crop (sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr); bool command_crop (sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr);
bool command_move (sqlite3 *db, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr); bool command_move (sqlite3 *db, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
bool command_shuffle(sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr); bool command_shuffle(sqlite3 *db, enum mpd_idle_flag *watch_mask_ptr);
bool command_playid (sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
bool command_queue_list(struct lkt_state *srv, size_t c, char *args[LKT_MESSAGE_ARGS_MAX]); bool command_queue_list(struct lkt_state *srv, size_t c, char *args[LKT_MESSAGE_ARGS_MAX]);
bool command_playid(sqlite3 *db, struct lkt_win *win, char *args[LKT_MESSAGE_ARGS_MAX], bool command_queue_find(struct lkt_state *srv, size_t c, char *cmd_args[LKT_MESSAGE_ARGS_MAX], long continuation);
enum mpd_idle_flag *watch_mask_ptr);
bool command_queue_find(struct lkt_state *srv, size_t c, char *cmd_args[LKT_MESSAGE_ARGS_MAX],
long continuation);
/* The playlists */ /* The playlists */
bool command_plt_create(sqlite3 *db, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr); bool command_plt_create(sqlite3 *db, char *args[LKT_MESSAGE_ARGS_MAX], enum mpd_idle_flag *watch_mask_ptr);
...@@ -71,8 +67,7 @@ enum lkt_find_action { ...@@ -71,8 +67,7 @@ enum lkt_find_action {
}; };
/* Find and send karas in the db that match the search expression */ /* Find and send karas in the db that match the search expression */
bool command_find(struct lkt_state *srv, size_t c, char *cmd_args[LKT_MESSAGE_ARGS_MAX], bool command_find(struct lkt_state *srv, size_t c, char *cmd_args[LKT_MESSAGE_ARGS_MAX], long continuation, enum lkt_find_action action);
long continuation, enum lkt_find_action action);
/* Set options for the lektor such as `random`, `single`, `repeat`, etc */ /* Set options for the lektor such as `random`, `single`, `repeat`, etc */
enum lkt_playback_option { enum lkt_playback_option {
...@@ -84,8 +79,7 @@ enum lkt_playback_option { ...@@ -84,8 +79,7 @@ enum lkt_playback_option {
lkt_playback_option_volume, lkt_playback_option_volume,
}; };
bool command_set_playback_option(struct lkt_state *srv, size_t c, enum lkt_playback_option opt, bool command_set_playback_option(struct lkt_state *srv, size_t c, enum lkt_playback_option opt, char *args[LKT_MESSAGE_ARGS_MAX]);
char *args[LKT_MESSAGE_ARGS_MAX]);
/* Authentificate users */ /* Authentificate users */
bool command_password(struct lkt_state *srv, size_t c, char *argv[LKT_MESSAGE_ARGS_MAX]); bool command_password(struct lkt_state *srv, size_t c, char *argv[LKT_MESSAGE_ARGS_MAX]);
......
...@@ -41,8 +41,7 @@ bool database_sync_mpv_state(sqlite3 *db, mpv_handle **mpv); ...@@ -41,8 +41,7 @@ bool database_sync_mpv_state(sqlite3 *db, mpv_handle **mpv);
/* Update the database. */ /* Update the database. */
bool database_update(sqlite3 *db, const char *kara_dir); bool database_update(sqlite3 *db, const char *kara_dir);
bool database_update_add(sqlite3 *db, const char *kara_path, struct kara_metadata *mdt, uint64_t id, bool database_update_add(sqlite3 *db, const char *kara_path, struct kara_metadata *mdt, uint64_t id, bool avail);
bool avail);
/* Control the content of the queue. */ /* Control the content of the queue. */
bool database_queue_add_id (sqlite3 *db, int id, int priority); bool database_queue_add_id (sqlite3 *db, int id, int priority);
...@@ -160,5 +159,4 @@ bool database_sticker_delete(sqlite3 *db, const char *name); ...@@ -160,5 +159,4 @@ bool database_sticker_delete(sqlite3 *db, const char *name);
bool database_sticker_delete_specify(sqlite3 *sb, const char *type, int uri, const char *name); bool database_sticker_delete_specify(sqlite3 *sb, const char *type, int uri, const char *name);
bool database_sticker_list (sqlite3 *db, const char *type, struct sticker_callback *call); bool database_sticker_list (sqlite3 *db, const char *type, struct sticker_callback *call);
bool database_sticker_set (sqlite3 *db, const char *type, const char *name, int uri, int value); bool database_sticker_set (sqlite3 *db, const char *type, const char *name, int uri, int value);
bool database_sticker_get(sqlite3 *db, const char *type, const char *name, int uri, bool database_sticker_get (sqlite3 *db, const char *type, const char *name, int uri, struct sticker_callback *call);
struct sticker_callback *call);
...@@ -56,8 +56,7 @@ struct kara { ...@@ -56,8 +56,7 @@ struct kara {
int kara_metadata_read(struct kara_metadata *dst, const char *filename); int kara_metadata_read(struct kara_metadata *dst, const char *filename);
/* Write metadata to a mkv file */ /* Write metadata to a mkv file */
int kara_metadata_write(struct kara_metadata *mdt, const char *filename, int kara_metadata_write(struct kara_metadata *mdt, const char *filename, const char *mkvpropedit);
const char *mkvpropedit);
/* Set the metadata for the file according to its path. */ /* Set the metadata for the file according to its path. */
int metadata_set_file(char *karapath, const char *mkvpropedit); int metadata_set_file(char *karapath, const char *mkvpropedit);
......
...@@ -42,8 +42,8 @@ int repo_get_alljson_sync(struct lkt_repo *const repo, struct json_object **json ...@@ -42,8 +42,8 @@ int repo_get_alljson_sync(struct lkt_repo *const repo, struct json_object **json
int repo_get_allid_async(struct lkt_repo *const repo); int repo_get_allid_async(struct lkt_repo *const repo);
/* Download a kara. */ /* Download a kara. */
int repo_download_id_sync(struct lkt_repo *const repo, sqlite3 *db, const uint64_t id, int repo_download_id_sync(struct lkt_repo *const repo, sqlite3 *db, const uint64_t id, const char *kara_path,
const char *kara_path, struct kara_metadata *mdt_ret); struct kara_metadata *mdt_ret);
int repo_download_id_async(struct lkt_repo *const repo, const size_t id); int repo_download_id_async(struct lkt_repo *const repo, const size_t id);
int repo_get_kara_async(struct lkt_repo *const repo, struct kara **downloaded); int repo_get_kara_async(struct lkt_repo *const repo, struct kara **downloaded);
......
...@@ -28,8 +28,7 @@ struct poller_thread_arg { ...@@ -28,8 +28,7 @@ struct poller_thread_arg {
/* Create a new thread. Returns 0 on success, a non zero value on error. */ /* Create a new thread. Returns 0 on success, a non zero value on error. */
int poller_new(struct poller_thread *th, unsigned int init_sizes, int poller_new(struct poller_thread *th, unsigned int init_sizes, void *(*func)(struct poller_thread_arg *), void *args);
void *(*func)(struct poller_thread_arg *), void *args);
/* Joins a thread. Returns 0 on success, a non zero value on error. */ /* Joins a thread. Returns 0 on success, a non zero value on error. */
int poller_join(struct poller_thread *th, void **ret); int poller_join(struct poller_thread *th, void **ret);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter