director-connection.h revision 2670cd577aa57eb9f915a4f4220ae48c9b4fc5fb
5f5870385cff47efd2f58e7892f251cf13761528Timo Sirainen#ifndef DIRECTOR_CONNECTION_H
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#define DIRECTOR_CONNECTION_H
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainenstruct director_host;
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainenstruct director;
e015e2f7e7f48874495f9df8b0dd192b7ffcb5ccTimo Sirainen
58be9d6bcc3800f5b3d76a064ee767fbe31a5a8aTimo Sirainenstruct director_connection *
1098fc409a45e7603701dc94635927a673bee0c1Timo Sirainendirector_connection_init_in(struct director *dir, int fd);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenstruct director_connection *
18d92dbbb752c79dc461514e52f7ef11847e636bTimo Sirainendirector_connection_init_out(struct director *dir, int fd,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen struct director_host *host);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid director_connection_deinit(struct director_connection **conn);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenvoid director_connection_send(struct director_connection *conn,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen const char *data);
ab1e5b156d1b5480d36ed6e8e06197339d803038Timo Sirainenvoid director_connection_send_except(struct director_connection *conn,
ab1e5b156d1b5480d36ed6e8e06197339d803038Timo Sirainen struct director_host *skip_host,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen const char *data);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#endif
e8fd7988ec183fb6c104aed19a61f1a096c51d34Timo Sirainen