[coldsync commit] r2597 - in trunk: . src

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 14, 2008, 5:11:05 AM10/14/08
to coldsync...@googlegroups.com
Author: azummo...@towertech.it
Date: Tue Oct 14 02:07:06 2008
New Revision: 2597

Modified:
trunk/NEWS
trunk/src/coldsync.c
trunk/src/runmode.c
trunk/src/runmode.h
trunk/src/spalm.c

Log:
Implemented -m info


Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Tue Oct 14 02:07:06 2008
@@ -6,7 +6,8 @@
There are a lot of new features in the 3.0 release of ColdSync.

- Working Network Hotsync, both in inetd and standalone mode.
- - Improved USB support (libusb).
+ - Improved USB support (libusb), which is now the default if no
+ device is specified on the command line.
- Named listen blocks. You can use the --listen <blockname> option to
select the
one you like.
- Autoinitialization of serial-number-retrievable devices in daemon mode.
@@ -21,6 +22,7 @@
'coldsync -m install' to quickly install new files.
'coldsync -m fetch' to download one from your PDA.
'coldsync -m list' to list your files.
+ 'coldsync -m info' to fetch basic info
- N-palms -> single-unix-user mapping in daemon mode.
- Linux capabilities support (libcap).
- Configuration files moved to <prefix>/etc/coldsync/* .

Modified: trunk/src/coldsync.c
==============================================================================
--- trunk/src/coldsync.c (original)
+++ trunk/src/coldsync.c Tue Oct 14 02:07:06 2008
@@ -368,6 +368,9 @@
case mode_List:
err = run_mode_List(argc, argv);
break;
+ case mode_Info:
+ err = run_mode_Info(argc, argv);
+ break;
default:
/* This should never happen */
Error(_("Unknown mode: %d.\n"

Modified: trunk/src/runmode.c
==============================================================================
--- trunk/src/runmode.c (original)
+++ trunk/src/runmode.c Tue Oct 14 02:07:06 2008
@@ -962,6 +962,29 @@
return 0;
}

+int
+run_mode_Info(int argc, char *argv[])
+{
+ int err;
+
+ struct Palm *palm;
+
+
+ /* Connect to the Palm */
+ if ((palm = palm_Connect()) == NULL )
+ return -1;
+
+ /* Ugly but works... */
+ if (misc_trace < 4)
+ misc_trace = 4;
+
+ palm_reload(palm);
+
+ palm_Disconnect(palm, DLPCMD_SYNCEND_NORMAL);
+
+ return 0;
+}
+

/* snum_checksum
* Calculate and return the checksum character for a checksum 'snum' of

Modified: trunk/src/runmode.h
==============================================================================
--- trunk/src/runmode.h (original)
+++ trunk/src/runmode.h Tue Oct 14 02:07:06 2008
@@ -14,4 +14,4 @@
extern int run_mode_Init(int argc, char *argv[]);
extern int run_mode_Daemon(int argc, char *argv[]);
extern int run_mode_List(int argc, char *argv[]);
-
+extern int run_mode_Info(int argc, char *argv[]);

Modified: trunk/src/spalm.c
==============================================================================
--- trunk/src/spalm.c (original)
+++ trunk/src/spalm.c Tue Oct 14 02:07:06 2008
@@ -1379,6 +1379,9 @@
{
int err;

+ if ((err = fetch_sysinfo(palm)) < 0)
+ return err;
+
if ((err = fetch_userinfo(palm)) < 0)
return err;

Reply all
Reply to author
Forward
0 new messages