Ticket #868 (closed task: fixed)

Opened 2 months ago

Last modified 7 weeks ago

Provide Init and Finalize Format Plugins interfaces

Reported by: dgollub Owned by: bricks
Priority: high Milestone: 0.38
Component: Engine Version: 0.37
Severity: critical Keywords:
Cc:

Description

There are various use cases where a init and finalize function for format plugin could be useful. One example is to pre-allocate or parse certain data which is required for conversion once. And pass a custom void *userdata to each format plugin call.

Related discussion on opensync-devel mailing list: http://article.gmane.org/gmane.comp.misc.opensync.devel/3055

Attachments

opensync_converter_init_and_finalize_func.diff (22.4 KB) - added by bricks 7 weeks ago.

Change History

Changed 7 weeks ago by bricks

Changed 7 weeks ago by bricks

  • owner changed from dgollub to bricks
  • status changed from new to assigned

Hi Daniel,

I wrote a patch for this ticket. Could you please review it and give me a feedback? I am not sure where to call the init and finalize functions for the converters. Currently they are called in osync_format_env_load_plugins and osync_format_env_free.

Changed 7 weeks ago by bricks

  • status changed from assigned to closed
  • resolution set to fixed

Committed in r3687 and r3688

Note: See TracTickets for help on using tickets.