Ticket #1019 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

Change Plugin Function parameter list (user-data pointer)

Reported by: dgollub Owned by: bricks
Priority: high Milestone: OpenSync 0.39
Component: OpenSync: Plugin API Version: 0.38
Severity: blocker Keywords:
Cc:

Description (last modified by dgollub) (diff)

Bjoern and myself discussed based on the thread on opensync-devel@ about the use of user-data pointer in Plugin functions. This is related to #1017. The summary is:

  1. Make a common parameter list-layout of all plugin functions
  2. Since format-plugin and sink-function interfaces got moved all user-data pointers to the end so we should for plugin-functions

Affected interfaces:

typedef void * (* initialize_fn) (OSyncPlugin *, OSyncPluginInfo *, OSyncError **);
typedef void (* finalize_fn) (void *);
typedef osync_bool (* discover_fn) (void *, OSyncPluginInfo *, OSyncError **);

Change History

comment:1 Changed 3 years ago by dgollub

  • Description modified (diff)

comment:2 Changed 3 years ago by dgollub

  • Milestone changed from OpenSync 0.40 to OpenSync 0.39

comment:3 Changed 3 years ago by dgollub

  • Component changed from OpenSync to OpenSync: Plugin API

comment:4 Changed 3 years ago by bricks

  • Status changed from new to closed
  • Resolution set to fixed

Committed in r5040 Some Plugins still need to get ported.

Note: See TracTickets for help on using tickets.