summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-06-27 21:54:42 +0200
committerJoe <bousset.rudy@gmail.com>2022-06-27 21:54:42 +0200
commitd34f7e2196d61675bdff26d84b1f402b86685cef (patch)
treef4498521a9fe0eeb9db98e6587cb32cea125184f
parentFirst commit (diff)
downloadmpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.gz
mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.bz2
mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.xz
mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.tar.zst
mpdview-d34f7e2196d61675bdff26d84b1f402b86685cef.zip
WIP
-rw-r--r--Makefile7
-rw-r--r--src/c_mpdview.c7
-rw-r--r--src/c_mpdview.h8
3 files changed, 18 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dd01c27..0495d56 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@
# ========================
#
# mpdview: Makefile
-# Mon, 27 Jun 2022 21:13:30 +0200
+# Mon, 27 Jun 2022 21:48:02 +0200
# Joe
#
# BSD Makefile
@@ -37,12 +37,13 @@ INCS := ${SRCS:.c=.h}
NAME := mpdview
CC ?= cc
-CFLAGS := -std=c89
+CFLAGS := -std=gnu89
CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
-CFLAGS += -march=native -O2 -pipe
+CFLAGS += -isystem/usr/local/include
+# CFLAGS += -march=native -O2 -pipe
RM := rm -f
MKDIR := mkdir -p
diff --git a/src/c_mpdview.c b/src/c_mpdview.c
index 8c6a6a1..b163e42 100644
--- a/src/c_mpdview.c
+++ b/src/c_mpdview.c
@@ -39,12 +39,17 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* mpdview: src/c_mpdview.c
- * Mon, 27 Jun 2022 21:20:37 +0200
+ * Mon, 27 Jun 2022 21:48:06 +0200
* Joe
*
* This is the entrypoint of the program.
*/
+#include <stdio.h>
+#include <unistd.h>
+
+#include <mpd/client.h>
+
int
main
(int argc,
diff --git a/src/c_mpdview.h b/src/c_mpdview.h
index fc904a4..ad9338f 100644
--- a/src/c_mpdview.h
+++ b/src/c_mpdview.h
@@ -48,4 +48,12 @@
#define PROGNAME "mpdview"
+typedef char bool_t;
+typedef void* ptr_t;
+
+enum bool_e {
+ FALSE,
+ TRUE
+};
+
#endif /* __C_MPDVIEW_H__ */