#ifndef __MOBILITY_H_
#define __MOBILITY_H_

#include "http.h"
#include "http_request.h"

typedef struct s_Mobility Mobility;

Mobility * mobility_new (const char *executable);
void mobility_destroy (void *ptr);

int mobility_sendRequest (Mobility *mob, httpTtrans *trans);

HttpRequest * mobility_getRequest (Mobility *mobility, const char *token);

dynTstring *mobility_getRequestDiag (Mobility *mobility);

int mobility_getPid (Mobility *mob);

#endif
