Commit 8a2ccd7279e90b0983b7d914432776940896eb9a
1 parent
9e0178d5
Exists in
master
and in
1 other branch
Fixing windows build.
Showing
3 changed files
with
16 additions
and
2 deletions
Show diff stats
server/pw3270-plugin-ipc.cbp
| @@ -121,6 +121,9 @@ | @@ -121,6 +121,9 @@ | ||
| 121 | <Unit filename="src/core/windows/resources.rc"> | 121 | <Unit filename="src/core/windows/resources.rc"> |
| 122 | <Option compilerVar="WINDRES" /> | 122 | <Option compilerVar="WINDRES" /> |
| 123 | </Unit> | 123 | </Unit> |
| 124 | + <Unit filename="src/core/windows/response.c"> | ||
| 125 | + <Option compilerVar="CC" /> | ||
| 126 | + </Unit> | ||
| 124 | <Unit filename="src/core/windows/start.c"> | 127 | <Unit filename="src/core/windows/start.c"> |
| 125 | <Option compilerVar="CC" /> | 128 | <Option compilerVar="CC" /> |
| 126 | </Unit> | 129 | </Unit> |
server/src/core/windows/pipesource.c
| @@ -101,7 +101,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { | @@ -101,7 +101,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { | ||
| 101 | int request_type = 0; | 101 | int request_type = 0; |
| 102 | 102 | ||
| 103 | if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) | 103 | if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) |
| 104 | - lib3270_trace_data(hSession, "IPC Data block received on pipe", (const char *) source->buffer, (size_t) cbRead); | 104 | + lib3270_trace_data(hSession, "IPC Data block received on pipe", (const unsigned char *) source->buffer, (size_t) cbRead); |
| 105 | 105 | ||
| 106 | debug("Received packet \"%s\" with %u bytes", request_name, (unsigned int) cbRead); | 106 | debug("Received packet \"%s\" with %u bytes", request_name, (unsigned int) cbRead); |
| 107 | 107 | ||
| @@ -169,7 +169,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { | @@ -169,7 +169,7 @@ static void process_input(IPC3270_PIPE_SOURCE *source, DWORD cbRead) { | ||
| 169 | DWORD wrote = (DWORD) szPacket; | 169 | DWORD wrote = (DWORD) szPacket; |
| 170 | 170 | ||
| 171 | if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) | 171 | if(lib3270_get_toggle(hSession,LIB3270_TOGGLE_EVENT_TRACE)) |
| 172 | - lib3270_trace_data(hSession, "IPC Data block sent to pipe", (const char *) buffer, szPacket); | 172 | + lib3270_trace_data(hSession, "IPC Data block sent to pipe", (const unsigned char *) buffer, szPacket); |
| 173 | 173 | ||
| 174 | WriteFile(source->hPipe,buffer,wrote,&wrote,NULL); | 174 | WriteFile(source->hPipe,buffer,wrote,&wrote,NULL); |
| 175 | 175 |
server/src/core/windows/response.c
| @@ -121,6 +121,17 @@ void ipc3270_response_append_string(GObject *object, const gchar *text) { | @@ -121,6 +121,17 @@ void ipc3270_response_append_string(GObject *object, const gchar *text) { | ||
| 121 | 121 | ||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | +void ipc3270_response_append_boolean(GObject *object, gboolean value) { | ||
| 125 | + | ||
| 126 | + ipc3270Response * response = IPC3270_RESPONSE(object); | ||
| 127 | + | ||
| 128 | + if(response->value) | ||
| 129 | + g_variant_unref(response->value); | ||
| 130 | + | ||
| 131 | + response->value = g_variant_new_boolean(value); | ||
| 132 | +} | ||
| 133 | + | ||
| 134 | + | ||
| 124 | GVariant * ipc3270_response_steal_value(GObject *object) { | 135 | GVariant * ipc3270_response_steal_value(GObject *object) { |
| 125 | 136 | ||
| 126 | ipc3270Response * response = IPC3270_RESPONSE(object); | 137 | ipc3270Response * response = IPC3270_RESPONSE(object); |