commit 298cfaa8b0af6cb052885fda03c65cc91d96aeec
parent 4e9ffc25fa7b71bbba8c8539afa852a41221b69a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 26 Aug 2021 12:55:51 -0700
Move the client struct definition outside the aps definition
Diffstat:
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/aps/aps.h b/aps/aps.h
@@ -7,20 +7,22 @@ struct aps;
#include "player.h"
#include "response.h"
+struct client {
+ struct buf *request;
+ struct response *resp;
+};
+
struct aps {
char **next;
int close;
int loglevel;
int nfds;
struct apcon *con;
- struct client {
- struct buf *request;
- struct response *resp;
- } clients[OPEN_MAX];
+ struct client clients[OPEN_MAX];
+ struct command *coms;
+ struct item *queue;
struct player *player;
struct pollfd pfds[OPEN_MAX];
- struct item *queue;
- struct command *coms;
unsigned int ncoms;
unsigned int timeout;
};