mirror of git://git.sysmocom.de/ofono
Phonet: add modem parameter to ISI pipe API
This commit is contained in:
parent
5e2a1745fb
commit
fa3c5f5ee1
|
@ -170,13 +170,15 @@ static bool g_isi_pipe_created(GIsiClient *client,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a Phonet pipe in disabled state and with low priority.
|
* 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 obj1 Object handle of the first end point
|
||||||
* @param obj2 Object handle of the second end point
|
* @param obj2 Object handle of the second end point
|
||||||
* @param type1 Type of the first end point
|
* @param type1 Type of the first end point
|
||||||
* @param type2 Type of the second end point
|
* @param type2 Type of the second end point
|
||||||
* @return a pipe object on success, NULL on error.
|
* @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)
|
uint8_t type1, uint8_t type2)
|
||||||
{
|
{
|
||||||
_isi_pipe_create_req_t msg = {
|
_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));
|
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->error = 0;
|
||||||
pipe->enabling = false;
|
pipe->enabling = false;
|
||||||
pipe->enabled = false;
|
pipe->enabled = false;
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
typedef struct _GIsiPipe GIsiPipe;
|
typedef struct _GIsiPipe GIsiPipe;
|
||||||
|
|
||||||
GIsiPipe *g_isi_pipe_create(uint16_t obj1, uint16_t obj2,
|
GIsiPipe *g_isi_pipe_create(GIsiModem *, uint16_t obj1, uint16_t obj2,
|
||||||
uint8_t type1, uint8_t type2);
|
uint8_t type1, uint8_t type2);
|
||||||
void g_isi_pipe_destroy(GIsiPipe *pipe);
|
void g_isi_pipe_destroy(GIsiPipe *pipe);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue