diff options
author | RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-08-18 14:35:35 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-08-19 17:07:15 +0300 |
commit | fa3c5f5ee1bad95d7511c9e90377ffd90ef0c291 (patch) | |
tree | 98d05602fb5ba0cb8809c62c705dad5a5a34dd29 /gisi/pipe.c | |
parent | 5e2a1745fbc044c48c30cc6e90f5160184bd6a43 (diff) | |
download | ofono-fa3c5f5ee1bad95d7511c9e90377ffd90ef0c291.tar.gz |
Phonet: add modem parameter to ISI pipe API
Diffstat (limited to 'gisi/pipe.c')
-rw-r--r-- | gisi/pipe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gisi/pipe.c b/gisi/pipe.c index 8f30ed3f..6249e8b3 100644 --- a/gisi/pipe.c +++ b/gisi/pipe.c @@ -170,13 +170,15 @@ static bool g_isi_pipe_created(GIsiClient *client, /** * Create a Phonet pipe in disabled state and with low priority. + * @param modem ISI modem to create a pipe with * @param obj1 Object handle of the first end point * @param obj2 Object handle of the second end point * @param type1 Type of the first end point * @param type2 Type of the second end point * @return a pipe object on success, NULL on error. */ -GIsiPipe *g_isi_pipe_create(uint16_t obj1, uint16_t obj2, +GIsiPipe *g_isi_pipe_create(GIsiModem *modem, + uint16_t obj1, uint16_t obj2, uint8_t type1, uint8_t type2) { _isi_pipe_create_req_t msg = { @@ -191,7 +193,7 @@ GIsiPipe *g_isi_pipe_create(uint16_t obj1, uint16_t obj2, }; GIsiPipe *pipe = g_malloc(sizeof(*pipe)); - pipe->client = g_isi_client_create(NULL, PN_PIPE); + pipe->client = g_isi_client_create(modem, PN_PIPE); pipe->error = 0; pipe->enabling = false; pipe->enabled = false; |