Ticket #173 (assigned enhancement)

Opened 2 years ago

Last modified 11 months ago

Add support for perl plugins

Reported by: yohonet@gmail.com Assigned to: abauer (accepted)
Priority: low Milestone:
Component: Plugin: others Version:
Severity: normal Keywords: plugin perl
Cc: yohonet@gmail.com

Description

OpenSync? could be even more open if you were able to run your own program(s) when syncing. Or in other words : I don't care about C and performances, please provide me a mean to write shell / perl scripts to sync my devices/files/whatever.

To give a concrete example of the problem : the only tool able to commnicate with my Nokia 3100 is "gammu". Its output is parsable but is far from being a XML file (more like a text file) and it would be really easier and more flexible if it could be parsed through perl.

To have this feature, I think someone should write a plugin which purpose is to call external programs whenever possible and its configuration file being those external programs.

Change History

04/21/06 09:17:24 changed by abauer

  • cc set to yohonet@gmail.com.
  • owner changed from abauer to anonymous.
  • status changed from new to assigned.
  • severity changed from normal to enhancement.
  • priority changed from normal to low.

OpenSync? is already capable of doing something similar. I choose C as the programming language for opensync to make it easily embedable in other high level languages like Java, Python, Perl etc.

To be able to write plugins in another language, you need 2 things: first, you need a language binding which implements the opensync API in this language. So far, this has been done for C++ and python (see http://svn.opensync.org/trunk/python/ for the python binding). And then you need a special plugin which can load a plugin writen in the high level language. this has been done for python so far (see http://svn.opensync.org/plugins/python-module/src/ for the python module and an example plugin written in python).

the first task should be quite easy, SWIG makes most of the work for you. But the second part can be quite complicated.

04/29/06 16:17:56 changed by yohonet@gmail.com

  • keywords changed from external programs to plugin perl.
  • summary changed from Add support for running one or more external programs while syncing to Add support for perl plugins.

Ok, I'll change this bug report title then. Let's say my enhancement request is only for perl then.

08/21/06 11:28:22 changed by cstender

  • owner deleted.
  • status changed from assigned to new.

09/07/06 17:45:20 changed by abauer

  • owner set to abauer.
  • status changed from new to assigned.

10/15/07 23:42:36 changed by dgollub

  • component changed from OpenSync to Plugin: others.