diff options
author | Joe <bousset.rudy@gmail.com> | 2022-06-27 22:12:42 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-06-27 22:12:42 +0200 |
commit | a9be92f7b81976fd833c82285a742be9fc9129d5 (patch) | |
tree | 4d61f7e2bfb77341d439deecbce7deb3dc57e06a /src/c_mpdview.c | |
parent | WIP (diff) | |
download | mpdview-a9be92f7b81976fd833c82285a742be9fc9129d5.tar.gz mpdview-a9be92f7b81976fd833c82285a742be9fc9129d5.tar.bz2 mpdview-a9be92f7b81976fd833c82285a742be9fc9129d5.tar.xz mpdview-a9be92f7b81976fd833c82285a742be9fc9129d5.tar.zst mpdview-a9be92f7b81976fd833c82285a742be9fc9129d5.zip |
WIP
Diffstat (limited to 'src/c_mpdview.c')
-rw-r--r-- | src/c_mpdview.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/c_mpdview.c b/src/c_mpdview.c index b163e42..e927f8b 100644 --- a/src/c_mpdview.c +++ b/src/c_mpdview.c @@ -45,10 +45,12 @@ * This is the entrypoint of the program. */ +#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <mpd/client.h> +#include <mpd/connection.h> int main @@ -56,9 +58,15 @@ main const char* argv[], const char* envp[]) { + struct mpd_connection* conn; + + conn = mpd_connection_new("localhost", 6600, 3000); + if (conn == NULL) { + return (EXIT_FAILURE); + } + (void)conn; (void)argc; (void)argv; (void)envp; - - return (0); + return (EXIT_SUCCESS); } |