Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 8

ResPluginGetChangesF_t

A function you must write to get changed resource data

Synopsis:

typedef void ResPluginGetChangesF_t (
  ResPluginHandle_t handle,
  int *pn,
  void **pvalue )

Description:

This function is exported in the ResPluginFullEditor_t structure.

This function is called by PhAB to retrieve changes to resource data from the editor. It is called only after a call to ResPluginAnyChangesF_t indicates that there are changes to the resource editor's data.

If the master copy rule applies, PhAB will take this data and make it the new master copy.

Arguments:

handle
The ResPluginHandle_t handle returned when the instance of the editor is created with ResPluginFullCreateF_t.
pn
A pointer to resource data. The actual data depends on the resource type.
pvalue
A pointer to resource data. The actual data depends on the resource type.

Examples:

This sample ResPluginGetChangesF_t function for a full editor is from the complete plugin example at the end of this chapter.

static void plugin_full_get_changes( ResPluginHandle_t handle, int *pn, void **pvalue )
{
  PluginFullInstance_t *instance = ( PluginFullInstance_t * ) handle;
  char *p;
  PtGetResource( instance->full_widget, Pt_ARG_TEXT_STRING, &p, 0 );
  *pn = strlen( p );
  *pvalue = strdup( p );
}

Classification:

QNX Neutrino

See also:

ResPluginAnyChangesF_t, ResPluginFullCreateF_t, ResPluginFullEditor_t.


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 106

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/wid_build/api/resplugingetchangesf_t.html on line 106