Commit 17888141afc4742246c49ba9805a23e1e26ad95b
1 parent
4e0716d0
Exists in
master
and in
1 other branch
Working on IPC Windows.
Showing
2 changed files
with
7 additions
and
5 deletions
Show diff stats
src/windows/gobject.c
| ... | ... | @@ -102,6 +102,7 @@ void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GEr |
| 102 | 102 | lib3270_set_session_id(ipc->hSession, id); |
| 103 | 103 | |
| 104 | 104 | ipc->source->hPipe = hPipe; |
| 105 | + ipc->source->hSession = hSession; | |
| 105 | 106 | ipc->source->state = PIPE_STATE_WAITING; |
| 106 | 107 | ipc->source->overlap.hEvent = CreateEvent( NULL,TRUE,TRUE,NULL); |
| 107 | 108 | ... | ... |
src/windows/gobject.h
| ... | ... | @@ -65,13 +65,14 @@ |
| 65 | 65 | } IPC3270_PIPE_STATE; |
| 66 | 66 | |
| 67 | 67 | typedef struct _ipc3270_pipe_source { |
| 68 | - GSource gsrc; | |
| 69 | - HANDLE hPipe; | |
| 68 | + GSource gsrc; | |
| 69 | + HANDLE hPipe; | |
| 70 | 70 | |
| 71 | - IPC3270_PIPE_STATE state; | |
| 71 | + IPC3270_PIPE_STATE state; | |
| 72 | + | |
| 73 | + OVERLAPPED overlap; | |
| 74 | + unsigned char buffer[PIPE_BUFFER_LENGTH+1]; | |
| 72 | 75 | |
| 73 | - OVERLAPPED overlap; | |
| 74 | - unsigned char buffer[PIPE_BUFFER_LENGTH+1]; | |
| 75 | 76 | } IPC3270_PIPE_SOURCE; |
| 76 | 77 | |
| 77 | 78 | struct _ipc3270 { | ... | ... |