[Insert name here] Reference Manual | ||||
---|---|---|---|---|
#define GAN_TRANSPORT_GET_INTERFACE (inst) GanTransport; GanTransportInterface; void (*GanTransportErrorFunc) (GanTransport *trans); void (*GanTransportConnectivityFunc) (GanTransport *trans, GanAddress *addr); void (*GanTransportPacketFunc) (GanTransport *trans, GanAddress *addr, GObject *payload); gboolean (*GanTransportSendPacketFunc) (GanTransport *transport, GanAddress *dest, GObject *payload, GError **error); gboolean gan_transport_send_packet (GanTransport *trans, GanAddress *dest, GObject *payload, GError **error); void gan_transport_disconnect (GanTransport *trans, GanAddress *addr); guint gan_transport_get_priority (GanTransport *transport); gboolean gan_transport_send_node_connectivity (GanTransport *trans, GanAddress *addr, GanNode *node, GanConnectivity connectivity, GError **error);
#define GAN_TRANSPORT_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GAN_TYPE_TRANSPORT, GanTransportInterface))
inst : |
typedef struct { GTypeInterface parent; /* virtual functions */ GanTransportSendPacketFunc send_packet; GanTransportConnectivityFunc disconnect; } GanTransportInterface;
void (*GanTransportConnectivityFunc) (GanTransport *trans, GanAddress *addr);
trans : |
|
addr : |
void (*GanTransportPacketFunc) (GanTransport *trans, GanAddress *addr, GObject *payload);
trans : |
|
addr : |
|
payload : |
gboolean (*GanTransportSendPacketFunc) (GanTransport *transport, GanAddress *dest, GObject *payload, GError **error);
transport : |
|
dest : |
|
payload : |
|
error : |
|
Returns : |
gboolean gan_transport_send_packet (GanTransport *trans, GanAddress *dest, GObject *payload, GError **error);
trans : |
|
dest : |
|
payload : |
|
error : |
|
Returns : |
void gan_transport_disconnect (GanTransport *trans, GanAddress *addr);
trans : |
|
addr : |
guint gan_transport_get_priority (GanTransport *transport);
transport : |
|
Returns : |
gboolean gan_transport_send_node_connectivity (GanTransport *trans, GanAddress *addr, GanNode *node, GanConnectivity connectivity, GError **error);
trans : |
|
addr : |
|
node : |
|
connectivity : |
|
error : |
|
Returns : |