Logo Search packages:      
Sourcecode: libmpdclient version File versions  Download package

async.h File Reference


Detailed Description

Asynchronous MPD connections.

This class provides a very basic interface to MPD connections. It does not know much about the MPD protocol, it does not know any specific MPD command.

The constructor expects a socket descriptor which is already connected to MPD. The first thing it does is read the server's handshake code ("OK MPD 0.15.0").

Definition in file async.h.

#include <mpd/error.h>
#include <mpd/compiler.h>
#include <stdbool.h>
#include <stdarg.h>

Go to the source code of this file.

Enumerations

enum  mpd_async_event { MPD_ASYNC_EVENT_READ = 1, MPD_ASYNC_EVENT_WRITE = 2, MPD_ASYNC_EVENT_HUP = 4, MPD_ASYNC_EVENT_ERROR = 8 }

Functions

mpd_pure enum mpd_async_event mpd_async_events (const struct mpd_async *async)
void mpd_async_free (struct mpd_async *async)
mpd_pure enum mpd_error mpd_async_get_error (const struct mpd_async *async)
mpd_pure const char * mpd_async_get_error_message (const struct mpd_async *async)
mpd_pure int mpd_async_get_fd (const struct mpd_async *async)
mpd_pure int mpd_async_get_system_error (const struct mpd_async *async)
bool mpd_async_io (struct mpd_async *async, enum mpd_async_event events)
mpd_malloc struct mpd_asyncmpd_async_new (int fd)
mpd_malloc char * mpd_async_recv_line (struct mpd_async *async)
mpd_sentinel bool mpd_async_send_command (struct mpd_async *async, const char *command,...)
bool mpd_async_send_command_v (struct mpd_async *async, const char *command, va_list args)


Generated by  Doxygen 1.6.0   Back to index