From 2bc9900a9712dc70b694425857d6b7293b23a887 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 11 Mar 2022 20:49:05 +0100 Subject: [PATCH] Remove mood.h. It's too small to be useful. Simply move the three function declarations to afs.h, next to the playlist related functions. --- afs.c | 1 - afs.h | 5 +++++ mood.c | 1 - mood.h | 7 ------- 4 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 mood.h diff --git a/afs.c b/afs.c index 4d473dc1..36c679fc 100644 --- a/afs.c +++ b/afs.c @@ -30,7 +30,6 @@ #include "sched.h" #include "fd.h" #include "signal.h" -#include "mood.h" #include "sideband.h" #include "command.h" diff --git a/afs.h b/afs.h index 14d943f8..1c54a1bd 100644 --- a/afs.h +++ b/afs.h @@ -263,6 +263,11 @@ int audio_file_loop(void *private_data, osl_rbtree_loop_func *func); int aft_check_callback(struct afs_callback_arg *aca); void free_status_items(void); +/* mood */ +int mood_switch(const char *mood_name, char **errmsg); +void close_current_mood(void); +int mood_check_callback(struct afs_callback_arg *aca); + /* playlist */ int playlist_open(const char *name, char **errmsg); void playlist_close(void); diff --git a/mood.c b/mood.c index db0dfaee..597ca650 100644 --- a/mood.c +++ b/mood.c @@ -12,7 +12,6 @@ #include "afh.h" #include "afs.h" #include "list.h" -#include "mood.h" /* * Mood parser API. It's overkill to have an own header file for diff --git a/mood.h b/mood.h deleted file mode 100644 index a4b262b4..00000000 --- a/mood.h +++ /dev/null @@ -1,7 +0,0 @@ -/* Copyright (C) 2007 Andre Noll , see file COPYING. */ - -/** \file mood.h Public functions of mood.c. */ - -int mood_switch(const char *mood_name, char **errmsg); -void close_current_mood(void); -int mood_check_callback(struct afs_callback_arg *aca); -- 2.39.2