#include <sys/types.h>
#include <sys/un.h>
+#include <urcu/list.h>
-#include "kcompat.h"
+#include <ust/kcompat/kcompat.h>
+#include "multipoll.h"
#define SOCK_DIR "/tmp/ust-app-socks"
#define UST_SIGNAL SIGIO
void *priv;
};
-extern char *strdup_malloc(const char *s);
+struct ustcomm_multipoll_conn_info {
+ struct ustcomm_connection *conn;
+ int (*cb)(char *msg, struct ustcomm_source *src);
+};
//int send_message_pid(pid_t pid, const char *msg, char **reply);
extern int ustcomm_request_consumer(pid_t pid, const char *channel);
extern int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle);
extern void ustcomm_fini_app(struct ustcomm_app *handle, int keep_socket_file);
-extern void ustcomm_free_app(struct ustcomm_app *app);
+extern void ustcomm_fini_ustd(struct ustcomm_ustd *handle);
extern int ustcomm_init_ustd(struct ustcomm_ustd *handle, const char *sock_path);
extern int ustcomm_send_reply(struct ustcomm_server *server, char *msg, struct ustcomm_source *src);
extern int ustcomm_disconnect(struct ustcomm_connection *conn);
extern int ustcomm_close_all_connections(struct ustcomm_server *server);
+extern void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(char *recvbuf, struct ustcomm_source *src));
extern int nth_token_is(const char *str, const char *token, int tok_no);