diff options
author | Mika Liljeberg <mika.liljeberg@nokia.com> | 2010-10-04 15:30:01 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-10-21 21:39:41 +0300 |
commit | 64624500596ec4150dcd422ac7ba9cc9958a529d (patch) | |
tree | ca6197370e4cccc124b0cb7ab3f496e67d74a3c0 /gisi/client.h | |
parent | 79e23355a4fc327d19b7077930852617de8a266a (diff) | |
download | ofono-64624500596ec4150dcd422ac7ba9cc9958a529d.tar.bz2 |
gisi: Add sendto methods to GIsiClient
Add g_isi_vsendto() and g_isi_sendto() methods for sending messages to
an arbitrary Phonet address.
Diffstat (limited to 'gisi/client.h')
-rw-r--r-- | gisi/client.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gisi/client.h b/gisi/client.h index e8ba9b36..d21569f4 100644 --- a/gisi/client.h +++ b/gisi/client.h @@ -29,6 +29,7 @@ extern "C" { #include <stdint.h> #include <glib/gtypes.h> #include <gisi/modem.h> +#include "phonet.h" struct _GIsiClient; typedef struct _GIsiClient GIsiClient; @@ -73,11 +74,25 @@ GIsiRequest *g_isi_request_vmake(GIsiClient *client, const struct iovec *iov, size_t iovlen, unsigned timeout, GIsiResponseFunc func, void *opaque); +GIsiRequest *g_isi_sendto(GIsiClient *client, + struct sockaddr_pn *dst, + const void *data, size_t len, + unsigned timeout, + GIsiResponseFunc func, void *opaque, + GDestroyNotify notify); + GIsiRequest *g_isi_send(GIsiClient *client, const void *data, size_t len, unsigned timeout, GIsiResponseFunc func, void *opaque, GDestroyNotify notify); +GIsiRequest *g_isi_vsendto(GIsiClient *client, + struct sockaddr_pn *dst, + const struct iovec *iov, size_t iovlen, + unsigned timeout, + GIsiResponseFunc func, void *opaque, + GDestroyNotify notify); + GIsiRequest *g_isi_vsend(GIsiClient *client, const struct iovec *iov, size_t iovlen, unsigned timeout, |