Move pcsuite drivers to its own plugin
Subsystems (2)
[email protected]
maintainerPATCH 1/2 Move pcsuite drivers to its own plugin
From: Luiz Augusto von Dentz <[email protected]>
This make it easier to enable/disable this funcionality as a whole.
--- Makefile.am | 6 +- configure.ac | 9 +- plugins/ftp.c | 165 +--------------- plugins/ftp.h | 30 +++ plugins/nokia-backup.c | 309 ----------------------------- plugins/pcsuite.c | 515 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 561 insertions(+), 473 deletions(-) create mode 100644 plugins/ftp.h delete mode 100644 plugins/nokia-backup.c create mode 100644 plugins/pcsuite.c
Makefile.am +3 -3
@@ -43,9 +43,9 @@ endif builtin_modules += filesystem builtin_sources += plugins/filesystem.c plugins/filesystem.h -if NOKIA_BACKUP -builtin_modules += backup -builtin_sources += plugins/nokia-backup.c +if NOKIA_PCSUITE +builtin_modules += pcsuite +builtin_sources += plugins/pcsuite.c endif builtin_modules += opp
configure.ac +4 -5
@@ -158,12 +158,11 @@ AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], AM_CONDITIONAL(USB, test "${enable_usb}" = "yes" && test "${enable_server}" != "no") -AC_ARG_ENABLE(nokia_backup, AC_HELP_STRING([--enable-nokia-backup], - [enable nokia-backup plugin]), [ - enable_nokia_backup=${enableval} +AC_ARG_ENABLE(pcsuite, AC_HELP_STRING([--enable-pcsuite], + [enable Nokia PcSuite plugin]), [ + enable_pcsuite=${enableval} ]) -AM_CONDITIONAL(NOKIA_BACKUP, test "${enable_nokia_backup}" = "yes" && - test "${enable_server}" != "no") +AM_CONDITIONAL(NOKIA_PCSUITE, test "${enable_pcsuite}" = "yes") AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client], [disable compilation of OBEX client]), [
plugins/ftp.c +9 -156
224 lines not on this page · raw message
plugins/ftp.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* +* OBEX Server +* +* Copyright (C) 2007-2010 Marcel Holtmann <[email protected]> +* +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +* +*/ + +void *ftp_connect (struct obex_session *os,int *err); +int ftp_get (struct obex_session *os,obex_object_t *obj,gboolean *stream, +void *user_data); +int ftp_chkput (struct obex_session *os,void *user_data); +int ftp_put (struct obex_session *os,obex_object_t *obj,void *user_data); +int ftp_setpath (struct obex_session *os,obex_object_t *obj,void *user_data); +void ftp_disconnect (struct obex_session *os,void *user_data);
plugins/nokia-backup.c deleted +0 -309
309 lines not on this page · raw message
plugins/pcsuite.c new file +515 -0
515 lines not on this page · raw message
Signature · 1 line
1.7.1
[email protected]
maintainerPATCH 1/2 Move pcsuite drivers to its own plugin
From: Luiz Augusto von Dentz <[email protected]>
This make it easier to enable/disable this funcionality as a whole.
--- Makefile.am | 6 +- configure.ac | 9 +- plugins/ftp.c | 165 +--------------- plugins/ftp.h | 30 +++ plugins/nokia-backup.c | 309 ----------------------------- plugins/pcsuite.c | 515 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 561 insertions(+), 473 deletions(-) create mode 100644 plugins/ftp.h delete mode 100644 plugins/nokia-backup.c create mode 100644 plugins/pcsuite.c
Makefile.am +3 -3
@@ -43,9 +43,9 @@ endif builtin_modules += filesystem builtin_sources += plugins/filesystem.c plugins/filesystem.h -if NOKIA_BACKUP -builtin_modules += backup -builtin_sources += plugins/nokia-backup.c +if NOKIA_PCSUITE +builtin_modules += pcsuite +builtin_sources += plugins/pcsuite.c endif builtin_modules += opp
configure.ac +4 -5
@@ -158,12 +158,11 @@ AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], AM_CONDITIONAL(USB, test "${enable_usb}" = "yes" && test "${enable_server}" != "no") -AC_ARG_ENABLE(nokia_backup, AC_HELP_STRING([--enable-nokia-backup], - [enable nokia-backup plugin]), [ - enable_nokia_backup=${enableval} +AC_ARG_ENABLE(pcsuite, AC_HELP_STRING([--enable-pcsuite], + [enable Nokia PcSuite plugin]), [ + enable_pcsuite=${enableval} ]) -AM_CONDITIONAL(NOKIA_BACKUP, test "${enable_nokia_backup}" = "yes" && - test "${enable_server}" != "no") +AM_CONDITIONAL(NOKIA_PCSUITE, test "${enable_pcsuite}" = "yes") AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client], [disable compilation of OBEX client]), [
plugins/ftp.c +9 -156
224 lines not on this page · raw message
plugins/ftp.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* +* OBEX Server +* +* Copyright (C) 2007-2010 Marcel Holtmann <[email protected]> +* +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +* +*/ + +void *ftp_connect (struct obex_session *os,int *err); +int ftp_get (struct obex_session *os,obex_object_t *obj,gboolean *stream, +void *user_data); +int ftp_chkput (struct obex_session *os,void *user_data); +int ftp_put (struct obex_session *os,obex_object_t *obj,void *user_data); +int ftp_setpath (struct obex_session *os,obex_object_t *obj,void *user_data); +void ftp_disconnect (struct obex_session *os,void *user_data);
plugins/nokia-backup.c deleted +0 -309
309 lines not on this page · raw message
plugins/pcsuite.c new file +515 -0
515 lines not on this page · raw message
Signature · 1 line
1.7.1
Hi Luiz,
Quoted 11 lines · On 02/26/2011 09:49 PM, ext [email protected] wrote:
From: Luiz Augusto von Dentz<[email protected]>
This make it easier to enable/disable this funcionality as a whole.
--- Makefile.am | 6 +- configure.ac | 9 +- plugins/ftp.c | 165 +--------------- plugins/ftp.h | 30 +++ plugins/nokia-backup.c | 309 ----------------------------- plugins/pcsuite.c | 515 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 561 insertions(+), 473 deletions(-)
Quoted 3 lines
create mode 100644
plugins/ftp.h
delete mode 100644plugins/nokia-backup.c
create mode 100644plugins/pcsuite.c
I've applied this patch and suddenly PC Suite stopped to discover if usb cable is connected (no possibility to take backup/restore via usb cable). In syslog there is no obexd logs in that scenario so hard to tell what went wrong:) After reverting to obexd release, based on upstream, everything started to work normally again.
So, does other components (which are using this backup functionality) need to make some changes to their code or something is wrong with that patch?
BR,
Radek
Luiz Augusto von Dentz
maintainerHi Radek,
Quoted 26 lines · Radoslaw Jablonski
Hi Luiz,
Quoted 13 lines · On 02/26/2011 09:49 PM, ext [email protected] wrote:
From: Luiz Augusto von Dentz<[email protected]>
This make it easier to enable/disable this funcionality as a whole.
---
Makefile.am | 6 +-configure.ac | 9 +- plugins/ftp.c | 165 +--------------- plugins/ftp.h | 30 +++ plugins/nokia-backup.c | 309 ----------------------------- plugins/pcsuite.c | 515 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 561 insertions(+), 473 deletions(-)Quoted 3 lines
create mode 100644
plugins/ftp.h
delete mode 100644plugins/nokia-backup.c
create mode 100644plugins/pcsuite.cI've applied this patch and suddenly PC Suite stopped to discover if usb cable is connected (no possibility to take backup/restore via usb cable). In syslog there is no obexd logs in that scenario so hard to tell what went wrong:) After reverting to obexd release, based on upstream, everything started to work normally again.
Quoted 3 lines
So, does other components (which are using this backup functionality) need to make some changes to their code or something is wrong with that patch?
Did you remember to add --enable-pcsuite to rules, otherwise pcsuite plugin won't compile.
Signature · 2 lines
Luiz Augusto von Dentz Computer Engineer
Hi Luiz,
Quoted 11 lines · ext Luiz Augusto von Dentz
Hi Radek,
Quoted 7 lines · Radoslaw Jablonski
I've applied this patch and suddenly PC Suite stopped to discover if usb cable is connected (no possibility to take backup/restore via usb cable). In syslog there is no obexd logs in that scenario so hard to tell what went wrong:) After reverting to obexd release, based on upstream, everything started to work normally again.
Quoted 6 lines
Quoted 3 lines
So, does other components (which are using this backup functionality) need to make some changes to their code or something is wrong with that patch?
Did you remember to add --enable-pcsuite to rules, otherwise pcsuite plugin won't compile.
No, I haven't touched rules so that was source of my problems:) Many thanks for quick response.
Radek
Hi Luiz,
Quoted 12 lines · On Sat, Feb 26, 2011, [email protected] wrote:
This make it easier to enable/disable this funcionality as a whole.
--- Makefile.am | 6 +- configure.ac | 9 +- plugins/ftp.c | 165 +--------------- plugins/ftp.h | 30 +++ plugins/nokia-backup.c | 309 ----------------------------- plugins/pcsuite.c | 515 ++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 561 insertions(+), 473 deletions(-) create mode 100644 plugins/ftp.h delete mode 100644 plugins/nokia-backup.c create mode 100644 plugins/pcsuite.c
Thanks. Both patches have been pushed upstream (with a couple of fixes to the commit messages).
Johan
[email protected]
maintainerPATCH 2/2 Remove redundante check for server when checking for usb
In reply to [email protected]From: Luiz Augusto von Dentz <[email protected]>
There is a check for this already on Makefile.am
--- configure.ac | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
configure.ac +1 -2
@@ -155,8 +155,7 @@ AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], [enable usb plugin]), [ enable_usb=${enableval} ]) -AM_CONDITIONAL(USB, test "${enable_usb}" = "yes" && - test "${enable_server}" != "no") +AM_CONDITIONAL(USB, test "${enable_usb}" = "yes") AC_ARG_ENABLE(pcsuite, AC_HELP_STRING([--enable-pcsuite], [enable Nokia PcSuite plugin]), [
Signature · 1 line
1.7.1
[email protected]
maintainerPATCH 2/2 Remove redundante check for server when checking for usb
In reply to [email protected]From: Luiz Augusto von Dentz <[email protected]>
There is a check for this already on Makefile.am
--- configure.ac | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
configure.ac +1 -2
@@ -155,8 +155,7 @@ AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], [enable usb plugin]), [ enable_usb=${enableval} ]) -AM_CONDITIONAL(USB, test "${enable_usb}" = "yes" && - test "${enable_server}" != "no") +AM_CONDITIONAL(USB, test "${enable_usb}" = "yes") AC_ARG_ENABLE(pcsuite, AC_HELP_STRING([--enable-pcsuite], [enable Nokia PcSuite plugin]), [
Signature · 1 line
1.7.1