-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
19 lines (17 loc) · 859 Bytes
/
utils.h
File metadata and controls
19 lines (17 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "global.h"
/*************************************
** SYSTEM AND MISCELLANY **
*************************************/
void ErrorAndExit(const char *message);
void printErrorAndExit(struct mpd_connection *conn);
void smart_sleep(void);
void my_finishCommand(struct mpd_connection *conn);
struct mpd_connection* setup_connection(void);
struct mpd_status * getStatus(struct mpd_connection *conn);
struct mpd_status* init_mpd_status(struct mpd_connection *conn);
const char * get_song_format(const struct mpd_song *song);
const char * get_song_tag(const struct mpd_song *song, enum mpd_tag_type type);
char *is_substring_ignorecase(const char *main, char *sub);
void pretty_copy(char *string, const char * tag, int size, int width);
void scroll_line_shift_style
(int *cursor, int *begin, const int total, const int height, const int lines);