
Go to the source code of this file.
Defines | |
| #define | SERVER_BUFFER_SIZE (1024) |
Functions | |
| gboolean | ipc_InstallIpcServer (Ereader *browser) |
<File description>="">
Definition in file ipcServer.h.
| #define SERVER_BUFFER_SIZE (1024) |
Definition at line 33 of file ipcServer.h.
| gboolean ipc_InstallIpcServer | ( | Ereader * | browser | ) |
Start listening to IPC requests
| Ereader | datastructure containing the "mozembed" reference |
Definition at line 51 of file ipcServer.cpp.
00052 { 00053 int returnValue; 00054 int channel; 00055 int fd = -1; 00056 00057 BR_IPCPRINTF("entry"); 00058 00059 returnValue = erIpcOpenServerChannel(ER_XHTML_VIEWER_CHANNEL, &theServerChannel); 00060 00061 if (returnValue != (-1)) 00062 { 00063 fd = erIpcGetServerFd(theServerChannel); 00064 00065 BR_IPCPRINTF("erIpcGetServerFd returned %d\n", fd); 00066 00067 // gtk specific mechanism to monitor input file descriptor. 00068 returnValue = gdk_input_add(fd, GDK_INPUT_READ, ipcMessageReceived, (gpointer) browser); 00069 00070 BR_IPCPRINTF("gdk_input_add returned %d", returnValue); 00071 return TRUE; 00072 } 00073 else 00074 { 00075 BR_ERRORPRINTF("Could not open server channel"); 00076 return FALSE; 00077 } 00078 }

1.5.6