
#ifndef __M3_CLIENT_H__
#define __M3_CLIENT_H__

#include "../mecha/mecha.h"
#include "../modhttp/http.h"
#include "music_packet.h"

typedef struct s_M3Client M3Client;

M3Client * m3_client_new (httpTtrans *trans, bool wantMetadata, int metadataInterval);
void m3_client_destroy (void *ptr);

const char * m3_client_ip_address_get (M3Client *instance);

void m3_client_packet_add (M3Client *instance, MusicPacket *packet);

void m3_client_process_request (M3Client *instance);

void m3_client_metadata_set (M3Client *instance, const char *title, const char *url);


#endif
