ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 1975b6f9550fabddf24814cf747b2f4402552f25
parent 7f0e2e84023c50c464f5de28a3ec3ca32ab9483a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed, 14 Jul 2021 22:17:04 -0700

Move log level enum to log.h

This way you can use aplog without including aps.h and all it's
prerequisites.

Diffstat:
Maps/aps.h | 7-------
Maps/log.c | 1+
Maps/log.h | 7+++++++
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/aps/aps.h b/aps/aps.h @@ -7,13 +7,6 @@ struct aps; #include "player.h" #include "response.h" -enum apsloglevel { - INFO = 1, - WARN = 2, - ERROR = 3, - FATAL = 4 -}; - struct aps { char *next[AP_ARGV_MAX]; int nextlen; diff --git a/aps/log.c b/aps/log.c @@ -7,6 +7,7 @@ #include <string.h> #include "aps.h" +#include "log.h" void aploadiov(struct iovec *v, char *s) diff --git a/aps/log.h b/aps/log.h @@ -1,2 +1,9 @@ +enum { + INFO = 1, + WARN = 2, + ERROR = 3, + FATAL = 4 +}; + void aplog(int, char *, int); void aps_log(struct aps *, int, char *, int);