mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 05:15:43 +01:00
23 lines
661 B
C
23 lines
661 B
C
|
extern int debugflag;
|
||
|
extern int force_restore;
|
||
|
extern char *command;
|
||
|
|
||
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
|
||
|
#define error(...) do {\
|
||
|
fprintf(stderr, "%s: %s:%d: ", command, __FUNCTION__, __LINE__); \
|
||
|
fprintf(stderr, __VA_ARGS__); \
|
||
|
putc('\n', stderr); \
|
||
|
} while (0)
|
||
|
#else
|
||
|
#define error(args...) do {\
|
||
|
fprintf(stderr, "%s: %s:%d: ", command, __FUNCTION__, __LINE__); \
|
||
|
fprintf(stderr, ##args); \
|
||
|
putc('\n', stderr); \
|
||
|
} while (0)
|
||
|
#endif
|
||
|
|
||
|
int save_state(const char *file, const char *cardname);
|
||
|
int load_state(const char *file, const char *cardname);
|
||
|
int power(const char *argv[], int argc);
|
||
|
int generate_names(const char *cfgfile);
|