/[gcjwebplugin]/gcjwebplugin/src/gcjwebplugin.cc
ViewVC logotype

Diff of /gcjwebplugin/src/gcjwebplugin.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mkoch, Sat Nov 8 22:12:56 2003 UTC revision 1.10 by mkoch, Sun Nov 9 10:49:52 2003 UTC
# Line 105  GCJ_New (NPMIMEType pluginType, NPP inst Line 105  GCJ_New (NPMIMEType pluginType, NPP inst
105    // FIXME: size this dynamically.    // FIXME: size this dynamically.
106    gchar *command_line[50];    gchar *command_line[50];
107    
108    // Allocate memory for the appletviewer name, --plugin option, each    // Allocate memory for the gcjappletviewer name, --plugin option, each
109    // applet tag attribute and a terminating NULL.    // applet tag attribute and a terminating NULL.
110    
111    command_line[0] = g_strdup ("gcjappletviewer");    command_line[0] = g_strdup ("gcjappletviewer");
# Line 287  send_message_to_appletviewer (NPP instan Line 287  send_message_to_appletviewer (NPP instan
287    GCJPluginData* data = (GCJPluginData *)instance->pdata;    GCJPluginData* data = (GCJPluginData *)instance->pdata;
288    NPError np_error;    NPError np_error;
289    
290    // Send name of attribute to appletviewer.    // Send name of attribute to gcjappletviewer.
291    gchar *name_buf = g_strdup_printf ("%s\n", name);    gchar *name_buf = g_strdup_printf ("%s\n", name);
292    
293    if (g_io_channel_write_chars (data->output_to_appletviewer,    if (g_io_channel_write_chars (data->output_to_appletviewer,
# Line 312  send_message_to_appletviewer (NPP instan Line 312  send_message_to_appletviewer (NPP instan
312    
313    if (value)    if (value)
314      {      {
315        // Send value of attribute to appletviewer.        // Send value of attribute to gcjappletviewer.
316        gchar *value_buf = g_strdup_printf ("%s\n", value);        gchar *value_buf = g_strdup_printf ("%s\n", value);
317        if (g_io_channel_write_chars (data->output_to_appletviewer,        if (g_io_channel_write_chars (data->output_to_appletviewer,
318                                      value_buf, -1, &bytes_written, &err)                                      value_buf, -1, &bytes_written, &err)
# Line 346  receive_message_from_appletviewer (NPP i Line 346  receive_message_from_appletviewer (NPP i
346    GError *err = NULL;    GError *err = NULL;
347    GCJPluginData* data = (GCJPluginData *)instance->pdata;    GCJPluginData* data = (GCJPluginData *)instance->pdata;
348    
349    // Receive message from appletviewer.    // Receive message from gcjappletviewer.
350    gchar *read_buf;    gchar *read_buf;
351    if (g_io_channel_read_line (data->input_from_appletviewer,    if (g_io_channel_read_line (data->input_from_appletviewer,
352                                &read_buf, NULL, NULL, &err)                                &read_buf, NULL, NULL, &err)

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26