diff options
-rw-r--r-- | samsung-ipc/crespo_ipc.c | 7 | ||||
-rw-r--r-- | samsung-ipc/ipc_private.h | 1 | ||||
-rw-r--r-- | vapi/samsung-ipc-1.0.vapi | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/samsung-ipc/crespo_ipc.c b/samsung-ipc/crespo_ipc.c index 02f150f..feb4964 100644 --- a/samsung-ipc/crespo_ipc.c +++ b/samsung-ipc/crespo_ipc.c @@ -383,6 +383,11 @@ int crespo_ipc_open(void) return modem_fmt_fd > 0 ? 0 : -1; } +void crespo_ipc_fd_set(int fd) +{ + modem_fmt_fd = fd; +} + int crespo_ipc_close(void) { close(modem_fmt_fd); @@ -536,4 +541,6 @@ struct ipc_ops crespo_ipc_ops = { .power_off = crespo_ipc_power_off, .send = crespo_ipc_send, .recv = crespo_ipc_recv, + .fd_set = crespo_ipc_fd_set, + .fd_get = crespo_ipc_fd_get, }; diff --git a/samsung-ipc/ipc_private.h b/samsung-ipc/ipc_private.h index f439719..bf7d00f 100644 --- a/samsung-ipc/ipc_private.h +++ b/samsung-ipc/ipc_private.h @@ -24,6 +24,7 @@ struct ipc_ops { int (*bootstrap)(void); int (*open)(void); + void (*fd_set)(int); int (*close)(void); void (*power_on)(void); void (*power_off)(void); diff --git a/vapi/samsung-ipc-1.0.vapi b/vapi/samsung-ipc-1.0.vapi index b4df9f8..402d895 100644 --- a/vapi/samsung-ipc-1.0.vapi +++ b/vapi/samsung-ipc-1.0.vapi @@ -70,6 +70,8 @@ namespace SamsungIpc public void open(); [CCode (cname = "ipc_close", cheader_filename = "radio.h")] public void close(); + [CCode (cname = "ipc_fd_set", cheader_filename = "radio.h")] + public void fd_set(int fd); [CCode (cname = "ipc_fd_get", cheader_filename = "radio.h")] public int fd_get(); [CCode (cname = "ipc_power_on", cheader_filename = "radio.h")] |