3 /* trp (transport) - send/receive a bunch of bytes */
5 /* This file implements the public interface of this module, exported to the*/
6 /* other modules of GRAS, but not to the end user. */
8 /* Authors: Martin Quinson */
9 /* Copyright (C) 2004 Martin Quinson. */
11 /* This program is free software; you can redistribute it and/or modify it
12 under the terms of the license (GNU LGPL) which comes with this package. */
14 #ifndef GRAS_TRANSPORT_H
15 #define GRAS_TRANSPORT_H
17 /* each plugin implements the socket the way it wants */
18 typedef void gras_trp_sock_t;
21 typedef struct gras_trp_plugin_ gras_trp_plugin_t;
23 /* Module, and get plugin by name */
24 gras_error_t gras_trp_init(void);
26 void gras_trp_exit(void);
28 gras_error_t gras_trp_plugin_get_by_name(const char *name,
29 gras_trp_plugin_t **dst);
33 #endif /* GRAS_TRANSPORT_H */