Ticket #1146 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

Introduce caps_converter function for format plugins

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

Description

This is a left over from #1084

  • get a new format plugin function called "caps_converter"
    • osync_bool (* caps_converter) (OSyncCapabilities *old, OSyncCapabilities **new, OSyncError **error)

This function should allow to reuse other's format-plugin merge/demerge function.

Example:

  • xmlformat plugin has a generic merge/demerge function
  • evo2-format plugin just converts evo2-caps to xmlformat-caps and can use
    • so the evo2-sync plugin doesn't have to maintain a complete set of merge/demerge code
    • several evo2-format converts allow to support more formats then the xmlformat... but also other "common" formats

Change History

comment:1 Changed 5 years ago by dgollub

Have a look at initial work from Björn in r5698

comment:2 Changed 5 years ago by dgollub

  • Owner changed from gollub to dgollub
  • Status changed from new to assigned

comment:3 Changed 5 years ago by dgollub

(In [5750]) PoC of caps-converter in vformat plugin for capabilities conversion from plain vcard fieldnames to xmlformat(-contact)

refs #1146

comment:4 Changed 5 years ago by dgollub

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

initial caps-converter implementation is complete

Note: See TracTickets for help on using tickets.