-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChangeLog.2
1551 lines (991 loc) · 49.4 KB
/
ChangeLog.2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2002-08-31 Alessandro Zummo <[email protected]>
* src/install.c: Removed pconn parameter to InstallNewFiles.
* src/conduit.c: Replaced SYNC_TRACE with CONDUIT_TRACE.
* src/config.c: Added support for CONDUIT_TRACE ( -d conduit:x)
* src/GenericConduit.cc: Update modnum using the value from dbinfo.
* TODO: Added an item about modnum and filter_dbs.
* libpconn/dlp_cmd.c, include/pconn/dlp_cmd.h: Implemented
DlpFindDB (ByTypeCreator), moved parsing of dlp_dbinfo structure
out of ReadDBList to allow code sharing.
* src/cs_error.c: Added functions to print the meaning
of the given CSerror/latest DLP error.
* src/sync.c : Added palm_CSDisconnect(palm) as a frontend
to call palm_Disconnect with proper arguments based on cs_errno.
* libpconn/dlp.c: Added a function to associate DLP error codes to
meaningful (?) error messages.
* src/spalm.c: Renamed palm_append_dbentry() to palm_append_pdbentry(),
added a new palm_append_dbentry().
* src/cs_error.h: Added macro cs_errno_fatal(x).
* src/config.c, src/sync.c et al.: Implemented filter_dbs option.
If active, coldsync will use DlpFindDB instead DlpReadDBList, in order
to build a partial database list based on the creator(s)/type(s) found
in the conduit blocks.
* most files: Errors are now propagated from libpconn to the calling
layer using callbacks. Maybe it's time to rewrite everything in C++.
* some files: Removed trailing '\n' from Error() calls.
* some files: Added print_latest_dlp_error() call after any
DlpXXX() call that resulted in an error.
* libpconn/PConnection.c: Hopefully fixed io_drain lock by setting
pconn->fd to -1 if an io error occurs while reading or writing.
* TODO: Removed the entry about io_drain lock.
* src/conduit.c: added propagation of struct Palm *. Added some of
the PDA-xx headers mentioned in the TODO. The header's value comes
from struct Palm * instead of the pda block wherever possible.
* TODO: Updated item about PDA-xxx headers.
* src/spalm.c, src/spalm.h: Added palm->accessor_status_ to know
whether the last accessor called worked or not. Added palm_ok()
#define to access accessor_status_ .
* src/sync.c: Added support for .palm/rescue. Works just
like .palm/install but the files aren't deleted after
the upload.
2002-08-03 Alessandro Zummo <[email protected]>
* libpconn/dlp_cmd.c, src/spalm.c: Added support for DLP >= 1.2
in ReadDBList. This leads to a speedup in the first phase
of the sync.
2002-06-21 Bron Gondwana <[email protected]>
* include/pconn/PConnection.h: Add flag PCONNFL_MODEM.
* libpconn/PConnection.c: Copy flags into pconn->flags rather than
passing it to the pconn_*_open functions, as it is required in other
functions for modem support.
* libpconn/Pconnection_net.c: Function definition change for open
and use pconn->flags rather than flags.
* libpconn/Pconnection_serial.c: Function definition change for open
and use pconn->flags rather than flags, serial_write to STDOUT_FILENO
if pconn->fd == STDIN_FILENO, don't do any setspeed if flags &
PCONNFL_MODEM. Special case device string 'stdin' means read from
stdin (note: linux has a /dev/stdin, but this is more portable)
* libpconn/Pconnection_usb.c: Function definition change for open
and use pconn->flags rather than flags.
* src/coldsync.c: Read the user config file in run_mode_Daemon if it's
provided on the command line, re-write flags from LISTENFL_* to
PCONNFL_* during new_PConnection so they don't have to be kept in sync.
* src/coldsync.h: Added LISTENFL_MODEM for modem support.
* src/lexer.l: Added MODEM keyword literal string 'modem'.
* src/palment.c: Wildcards for the columns serial ('' or '*'),
username ('' or '*'), userid (0) such that they match any palm.
* src/parser.y: token MODEM sets flag LISTENFL_MODEM on the current
listen block if seen.
2001-12-10 Andrew Arensburger <[email protected]>
* libpconn/dlp_cmd.c: Removed a to-do comment. Yay!
* libpconn/dlp.c: Added some trace statements.
2001-12-09 Andrew Arensburger <[email protected]>
* doc/Makefile: When installing man pages, looks for synonyms in
the file, and installs them as symlinks.
* libpconn/palm_errno.c: Added PALMERR_TIMEOUT2 case to
palm_strerror().
* libpconn/netsync.c: netsync_read_method() now waits for input
with (*io_select)() instead of waiting forever with read(). This
should help with dropped data under Linux.
* libpconn/dlp_cmd.c: Dlp*() functions now use dlp_dlpc_req().
* libpconn/dlp.c: dlp_send_req() now takes const arguments. Added
dlp_dlpc_req(), a wrapper for sending DLP commands and getting an
answer back.
* include/pconn/palm_errno.h: Added PALMERR_TIMEOUT2, for timeouts
that shouldn't happen.
* include/pconn/netsync.h: Added NETSYNC_WAIT_TIMEOUT.
* include/pconn/dlp.h: dlp_send_req() now takes const arguments.
Added declaration for dlp_dlpc_req().
* configure.in: Bumped up version number. 2.3.0 is the new
development branch.
* doc/coldsync.8: Added documentation for "hostid: 12345678;"
* src/parser.y: Allow "hostid: 12345678;" in options block, to set
host ID.
* src/lexer.l: Added "hostid" keyword.
* src/config.c: Initialize hostid to 0.
* src/coldsync.c: Get host ID after parsing config file, since it
might set the host ID.
* i18n/Makefile: Echo before creating directories, for
explicitness.
* doc/Makefile: Added quotes, out of paranoia.
* conduits/Makefile: Echo what it's doing, to make 'make install'
logs more explicit.
2001-12-08 Andrew Arensburger <[email protected]>
* i18n/cs.po: Latest translation.
2001-12-07 Andrew Arensburger <[email protected]>
- Version 2.2.5 (stable) released.
* doc/coldsync.8: Added documentation for "transient" keyword.
* FAQ: Added bit about Palm not documenting USB protocol.
* i18n/Makefile: Added "cs" to list of languages.
* README: Added note about --without-ipv6 under Solaris.
* i18n/cs.po: Split up usage string into multiple strings.
* AUTHORS: Added Petr Kubanek.
* i18n/cs.po (added): Czech translations.
* i18n/fr.po: Latest version of strings.
2001-12-06 Andrew Arensburger <[email protected]>
* configure.in: Added a comment about Solaris.
* doc/Makefile: Fixed missing backslash.
* libpconn/PConnection_serial.c (bug fix): Error message didn't
check arguments properly, segfaulted.
2001-11-30 Andrew Arensburger <[email protected]>
* i18n/it.po, i18n/de.po: Latest version of strings. Split usage
message up into individual strings.
2001-11-28 Andrew Arensburger <[email protected]>
* src/coldsync.c (bug fix): lookups in /usr/local/etc/palms
weren't comparing the right values. Patch submitted by Alessandro
Zummo.
2001-11-20 Andrew Arensburger <[email protected]>
* doc/libpdb.3: Updated with the real list of functions.
* doc/Makefile: Added libpdb man pages to list of files to be
installed.
* doc/pdb_Read.3, doc/pdb_LoadHeader.3, doc/pdb_FindRecordByID.3,
doc/pdb_DeleteRecordByID.3, doc/pdb_CopyRecord.3,
doc/pdb_AppendRecord.3, doc/new_pdb.3, doc/new_Record.3:
(added) libpdb man pages.
* include/pdb.h: Added declaration of new_Resource().
* include/pdb.h: Added some missing 'extern's.
2001-11-19 Andrew Arensburger <[email protected]>
* src/config.c (bug fix): Software protocol didn't get set
properly when running solely with command-line options.
* libpconn/PConnection_usb.c: Fix looping on transient devices.
* src/coldsync.c, libpconn/PConnection_net.c: Don't include
problem headers under Solaris with --without-ipv6, so it'll
compile. Whee.
* libpconn/Makefile: Added comments on building shared libraries
under Solaris and DU.
* configure.in: Added --without-ipv6 option, mainly for Solaris.
* README: Added a complaint about DEC's linker.
* Make.rules.in: Fixed invocation of 'ln' to work under Solaris
(grrr), for shared libraries.
* FAQ: Added a bit about m50x'es.
2001-11-13 Andrew Arensburger <[email protected]>
* AUTHORS: Added Samuel Tardieu.
* conduits/send-mail: Insert whitespace in continuation lines.
Patch supplied by Samuel Tardieu <[email protected]>.
2001-11-12 Andrew Arensburger <[email protected]>
* FAQ: Added a bit about Visor serial number bug.
* src/parser.y, src/lexer.l: Added "transient" keyword.
* src/config.c: Print listen{} flags in debugging statement.
* src/coldsync.h: Added LISTENFL_TRANSIENT.
* src/coldsync.c: If listen{} block was marked "transient", pass
that on to new_PConnection().
* libpconn/PConnection_usb.c, libpconn/PConnection_serial.c: Added
support for transient devices.
2001-11-11 Andrew Arensburger <[email protected]>
- Version 2.2.4 released.
* libpdb/Makefile, libpconn/Makefile, Make.rules.in: First stab at
making shared libraries.
* src/parser.y: Added boolean token type, for boolean options.
Allow "force_install [: <bool>]" and "install_first [: <bool>]" in
options{} block. Added some missing semicolons.
* src/misc.c: Added Bool3str(), to return the printed
representation of a Bool3.
* src/lexer.l: Added keywords "true", "false", "yes", and "no",
for boolean options.
* src/config.c: global_opts.force_install and
global_opts.install_first are now 'Bool3's. Initialize them to
"Undefined", and allow the config file to override values that
weren't set on the command line.
* src/coldsync.h: Added Bool3 type. global_opts.force_install and
global_opts.install_first are now 'Bool3's. Added options to
struct sync_config, for the options block. Added declaration for
Bool3str().
* src/coldsync.c: Pass flags to new_PConnection().
global_opts.force_install and global_opts.install_first are now
'Bool3's.
* libpconn/PConnection_usb.c, libpconn/PConnection_serial.c,
libpconn/PConnection_net.c, libpconn/PConnection.c,
include/pconn/PConnection.h: Removed 'promptForHotsync' hack,
replaced with more general 'flags'.
* doc/coldsync.8: Added documentation for force_install and
install_first options in .coldsyncrc.
* doc/new_PConnection.3, doc/libpconn.3: Fixed documentation of
new_PConnection().
2001-11-09 Andrew Arensburger <[email protected]>
* src/parser.y: Added "force_install" and "install_first"
keywords. (Still buggy.)
* src/lexer.l: Moved the variable name pattern after the keyword
patterns, so that keywords keywords take precedence.
* AUTHORS: Added Bob Geer.
2001-11-07 Andrew Arensburger <[email protected]>
* libpdb/pdb.c (bug fix): Changed some offsets from uword (bug!)
and udword (non-bug) to localID, since that's how they're
represented in struct pdb. Bug reported and fix suggested by Bob
Geer <[email protected]>
* libpconn/spc_client.c: Trace statements used to be printed
unconditionally. Turned them into more conventional IO_TRACE()
statements.
2001-11-04 Andrew Arensburger <[email protected]>
* libpconn/slp.c (bug fix): Removed bogus close(). It'd be nice to
fix this better, but that's too hard right now.
* doc/coldsync.8: Documented $(CONDUITDIR) and $(CONDUIT_PATH).
2001-11-01 Andrew Arensburger <[email protected]>
* src/config.c: Fixed overly-long usage string, and made it more
translatable.
* i18n/fr.po: Updated usage strings.
2001-10-30 Andrew Arensburger <[email protected]>
* AUTHORS: Added Francisco Castro.
* src/spc.c (bug fix): Use the proper write method. Patch
submitted by Francisco Castro <[email protected]>
2001-10-23 Andrew Arensburger <[email protected]>
* src/conduit.c (bug fix): Forgot format argument to snprintf().
D'oh! Patch submitted by Fred Gylys-Colwell
2001-10-17 Andrew Arensburger <[email protected]>
- Version 2.2.3 released.
* src/parser.y: Optional colons are now mandatory (it's about
time).
* src/config.c: Removed use of do_{backup,restore},
{backup,restore}dir in global_opts. Fixed getopt() call
accordingly. Added -P option to usage string.
* src/coldsync.c: Removed use of do_{backup,restore},
{backup,restore}dir in global_opts. The -b and -r options are
dead.
* src/coldsync.h: Removed do_{backup,restore}, {backup,restore}dir
from global_opts.
* doc/coldsync.8: Added mention of -P option and "protocol:"
directive. Removed mention of obsolete -b and -r options.
* libpconn/PConnection_usbm50x.c (deleted): Obsoleted by "simple"
software protocol.
* src/parser.y: Removed USB_M50X listen type.
* src/lexer.l: Removed "usb_m50x", "m50x" keywords.
* src/config.c: Removed "usb_m50x", "m50x" keywords.
* libpconn/PConnection.c: Removed usb_m50x functions.
* libpconn/Makefile: Removed PConnection_usbm50x.c
* include/pconn/PConnection.h: Removed LISTEN_USB_M50X listen
type.
* doc/coldsync.8: Removed references to "usb_m50x".
* src/symboltable.h: Prettification. Added Emacs magic.
* src/symboltable.cc: Prettified a bit. Added forward declaration
for make_c_string(). Added some "to do" comments.
* src/parser.y: Fixed improperly-merged lex_expect() calls.
* src/parser.h: Added LEX_VAR start state, for variable names.
* src/config.c: Undid my fix: no need to duplicate value passed to
put_symbol().
* libpconn/netsync.c: Added "to do" comment. Made a trace
statement conditional.
2001-10-14 Andrew Arensburger <[email protected]>
* src/conduit.c (bug fix): Fixed off-by-one error in filename
generation.
(bug fix): Fixed infinite loop.
2001-10-12 Andrew Arensburger <[email protected]>
- Version 2.2.2 released.
2001-10-11 Andrew Arensburger <[email protected]>
Incorporated Fred Gylys-Colwell's patches:
* README: Updated version number.
* src/symboltable.h: Added __cplusplus guard.
* libpdb/Makefile: Use tab instead of space.
* config.h.in: Added c_plusplus.
* src/parser.y: Set variable strings to NULL on parser stack after
storing in symbol table.
* src/config.c: Don't store static string in symbol table.
* configure.in: Added check for access().
* src/symboltable.cc: Added some warning comments.
* src/parser.h: Added LEX_VAR start state. Added lex_tini().
* doc/coldsync.8: Incorporated options{} and variable
documentation from "fred" branch.
* doc/sample.coldsync.rc: Added example of option{} block.
* src/parser.y: Added options{} block.
* src/lexer.l: Added symbol table support. Added "options"
keyword.
* src/conduit.c: Include symbol table support. Better error
logging.
* src/config.c: Added symbol table: "-l logfile" sets the LOGFILE
symbol. Added casts to printf("%p") statements to make gcc shut
up.
* src/conduit.c: Replaced Fred's exec_from_path() with
find_in_path(). Use execv(), not execvp(): if find_in_path()
didn't find it, don't bother looking in $PATH.
* src/lexer.l: Added 'qstring', 'qstr_*' variables, qstr_clear(),
qstr_append(). Added lex_tini(). Added LEX_VAR start state.
Removed YY_NO_UNPUT and YY_NEED_STRLEN, since we now use unput()
and yyless(), respectively. Added character classes for variable
names and ordinary characters in strings. Redid Fred's
double-quoted strings with qstr_append(), for cleanliness. Check
variable interpolations for sanity. Variables can now be either
$(VAR) or ${VAR}. Strings may now contain escaped characters (all
the ones allowable in C strings), octal (\0123) and hex (\x3f)
characters. Attempt to find runaway strings.
* src/symboltable.cc: Made make_c_string() static, and added
forward declaration, so it'll compile cleanly.
* src/parser.y: Removed some "to do" comments. Yay! In options{}
block, now knows that variable names should look like variable
names, not quoted strings or ordinary barewords. Clean up after
lexer.
* src/parser.h: Added LEX_VAR start state. Added lex_tini(), to
clean up after lexer.
* src/coldsync.c: Rehabilitated global_opts.log_fname. Fixed
logging to a file: fixed open_log_file() so that it can be called
multiple times and do the Right Thing. Open the log file twice:
once after command-line options are parsed, and once after the
config file is parsed, in case the config file specified a new log
file. Fixed the test to determine whether or not to log the
closing of the log file. open_log_file() now returns -1 instead of
1 in case of error.
* src/coldsync.h: Rehabilitated global_opts.log_fname.
* src/coldsync.c (bug fix): Prevent memory from being free()d
twice.
* src/config.c: Set log file both ways (both in global_opts, and
as a symbol in the symbol table). This is but temporary.
* src/config.c: Un-split the long usage string, since IMHO it
makes sense to do it differently.
2001-10-10 Andrew Arensburger <[email protected]>
* src/Makefile: Added symboltable.{h,cc}
* src/log.c: Removed logging to stderr (unnecessary).
* src/symboltable.h: Fixed up comments to fit my style. Enclosed
the whole thing in 'extern "C"'
* src/symboltable.h, src/symboltable.cc (added): Functions for
manipulating symbol table.
* libpconn/netsync.c: Re-added comments, ritual_*_size constants
that got lost in the shuffle.
(bug fix): wasn't sending ritual response 3
properly.
* libpconn/PConnection.c: Changed "fname" to "device", for
consistency with other related functions.
* include/pconn/Makefile: Added spc_client.h.
* libpconn/Makefile: Added spc_client.c.
* libpconn/spc_client.c (added): Definitions for SPC client.
* include/pconn/spc_client.h (added): Declarations for SPC client.
* include/pconn/netsync.h: Removed ritual statement lengths.
* libpconn/netsync.c: Ritual statements are static, since they're
only used here.
* src/misc.c, libpdb/pdb.c, libpconn/slp.c,
libpconn/PConnection_net.c: #include <strings.h> on those machines
that have it.
* src/spalm.c: #include <strings.h>, on those systems that need
it.
* src/GenericConduit.cc: Took out extraneous add_to_log() calls.
Removed Fred's "local_changed" and "remote_changed" variables: not
really useful.
2001-10-08 Andrew Arensburger <[email protected]>
* libpdb/Makefile, libpconn/Makefile: Added ${OTHERTAGFILES} to
build TAGS file correctly.
* Make.rules.in: Get CONDUITDIR from 'configure'.
* config.h.in: Added HAVE_BCOPY
* configure.in: Add standard CPPFLAGS to look for headers and
libraries in $prefix only if $prefix isn't /usr: this confuses
gcc. Add test for bcopy(). Added --with-conduits=DIR, to specify
where conduits should be installed.
* config.h.in: Added CONDUITDIR.
END OF FRED'S PATCHES
- Version 2.2.1 released.
* i18n/it.po, i18n/fr.po, i18n/de.po: Latest version of strings.
* libpconn/netsync.c: Added some "to do" comments, more logging.
* libpconn/PConnection_usb.c: Added some "to do" comments, more
logging.
* doc/libpdb.3: First draft of documentation for libpdb.
* configure.in: Bumped up version number. Don't use
-I${prefix}/include or -L${prefix}/lib if $prefix is /usr, since
that confuses gcc. Added check for access(). Added
--with-conduits=DIR option.
2001-10-06 Andrew Arensburger <[email protected]>
* src/restore.c: Replaced add_to_log() calls with va_add_to_log().
No longer refuses to upload read-only database: rather, lets the
user shoot himself in the foot: if the database already exists
(and is read-only), then DlpDeleteDB() should fail, and so will
the upload.
* src/log.c: Removed 'synclog' and add_to_log(). Replaced with
va_add_to_log().
* src/install.c: Replaced add_to_log() calls with va_add_to_log().
(bug fix): Turn off read-only flag when uploading database, otherwise
it's impossible to delete it.
* src/coldsync.h: Replaced add_to_log() with va_add_to_log().
* src/coldsync.c: Got rid of 'synclog' and all the crud associated
with uploading the sync log only at the end of the script. Use
va_add_sync_log().
* src/backup.c: Replaced add_to_log() calls with va_add_to_log().
* src/GenericConduit.cc: Replaced add_to_log() calls with
va_add_to_log().
* libpconn/dlp_cmd.c (bug fix) DlpAddSyncLogEntry() doesn't
include the trailing NUL as part of the log message, so when you
say to add a log message, it really does that.
* i18n/it.po, i18n/fr.po, i18n/de.po: Latest version of strings.
Updated for va_add_to_log().
2001-09-29 Andrew Arensburger <[email protected]>
* src/config.c: Casts to shut up gcc 3.
* libpdb/pdb.c: Cast to shut up gcc 3.
2001-09-22 Andrew Arensburger <[email protected]>
* config.h.in: Added CONDUITDIR.
* Make.rules.in: Added CONDUITDIR from 'configure'.
* libpconn/PConnection_serial.c (bug fix): check speeds: if either
the user or the Palm suggests a speed that the serial port doesn't
support, print an error message and abort.
2001-09-07 Andrew Arensburger <[email protected]>
* libpconn/dlp_rpc.c: Cast RPC trap numbers to uword, where
necessary. Removed default case from switch(argtype), to allow
compiler to catch missing cases.
* include/pconn/dlp_rpc.h: Added types dlprpc_trap (for RPC trap
numbers) and dlprpc_argtype_t
(for RPC argument types). Updated DLPRPC_param accordingly.
* src/coldsync.c: Replaced palm_errlist[] with palm_strerror().
* src/GenericConduit.cc: Use palmerr_t.
* libpconn/cmp.c: Replaced palm_errlist[] with palm_strerror().
* libpconn/palm_errno.c: Use palmerr_t. Removed palm_errlist[],
palm_numerrs; replaced with palm_strerror().
* include/pconn/palm_errno.h: Removed declarations for
now-obsolete palm_errrlist[] and palm_numerrs.
* include/pconn/palm_errno.h: Added type palmerr_t for libpconn
status/error codes. Changed palm_errno to palmerr_t. Added
declaration for palm_strerror().
* src/spalm.c, src/restore.c, src/install.c, src/coldsync.c,
src/backup.c, src/GenericConduit.cc, libpconn/dlp_cmd.c: Use
dlp_stat_t.
* include/pconn/dlp.h: Added type dlp_stat_t for DLP status codes.
* libpconn/padp.c: Use padp_frag_t.
* include/pconn/padp.h: Added type padp_frag_t for PADP packet
fragment types.
* src/coldsync.c: Cast slp_pkttype to ubyte where necessary.
* include/pconn/slp.h: Added type slp_pkttype for SLP packet
types.
* FAQ: Added a bit about finding username and userid.
* AUTHORS: Added Fred Gylys-Colwell and Nicholas Kreucher.
* FAQ: Added info on Sony Clie.
* src/conduit.c (bug fix): Prevent double free()ing of spc_inbuf.
* doc/PConn_bind.3: Updated sample code.
* src/coldsync.c: Cast slp_port to ubyte where necessary.
* include/pconn/slp.h: Added type slp_port for SLP port numbers
(aka socket IDs).
* libpconn/cmp.c: Cast cmp_pkt_t to ubyte where necessary.
* include/pconn/cmp.h: Added type cmp_pkt_t for CMP packet types.
* libpconn/dlp_cmd.c: Cast DLP command operators to short when
necessary.
* include/pconn/dlp_cmd.h: Added dlpc_op_t type, for DLP command
IDs.
* src/parser.y: Use lex_expect(LEX_NONE) instead of lex_expect(0).
* src/lexer.l: Updated lex_expect() to use lex_state_t. Removed
default clause from switch, so gcc can find missing cases.
* src/parser.h: Added type lex_state_t for Lex states.
* src/Makefile: Added more dependency lines for Lex/Yacc files.
* src/parser.y, src/config.c, src/coldsync.c: Converted to new
pconn_listen_t and pconn_proto_t.
* src/coldsync.h: Converted to new pconn_listen_t and
pconn_proto_t. Removed useless comm_type type.
* libpconn/netsync.c: Added cases to a switch(protocol), for
completeness.
* libpconn/PConnection_usbm50x.c: Fixed declaration of
pconn_usbm50x_open().
* libpconn/PConnection_usb.c: Added all protocols to
switch(protocol) case statements, for completeness. Fixed
declaration of pconn_usb_open().
* libpconn/PConnection_serial.c: Removed a useless break. Added
all protocols to switch(protocol) case statements, for
completeness. Fixed declaration of pconn_serial_open().
* libpconn/PConnection_net.c: Fixed declaration of
pconn_net_open(). Included all cases in switch(protocol), for
completeness.
* libpconn/PConnection.c: Fixed declarations of new_PConnection()
and pconn_*_open().
* doc/new_PConnection.3: Fixed declaration for new_PConnection().
* include/pconn/PConnection.h: Fixed declaration for
new_PConnection().
* include/pconn/PConnection.h: Defined new types: pconn_listen_t
and pconn_proto_t; redefined functions accordingly.
* src/spc.h: Defined enums for SPCOP_* and SPCERR_* constants. Not
as useful as might be hoped, but every bit counts.
2001-09-06 Andrew Arensburger <[email protected]>
* src/coldsync.c: Updated declaration of 'cs_errno'.
* src/cs_error.h: Made a separate enum for 'cs_errno', and made it
its own type, the better to catch untested cases.
* FAQ: Updated information about Visor.
2001-09-05 Andrew Arensburger <[email protected]>
* doc/Makefile: Added the new function man pages to distribution;
install them with 'make install'. Added ${EXTRA_INFOFILES} to full
distribution.
* doc/libpconn.3 (added): Main man page for libpconn library.
* doc/time_dlp2palmtime.3, doc/new_PConnection.3,
doc/RDLP_ROMToken.3, doc/RDLP_PluggedIn.3,
doc/RDLP_MemHandleNew.3, doc/RDLP_GetOSVersionString.3,
doc/RDLP_BatteryDialog.3, doc/RDLP_Backlight.3, doc/PConn_bind.3,
doc/PConnClose.3, doc/DlpWriteResource.3, doc/DlpWriteRecord.3,
doc/DlpResetSystem.3, doc/DlpResetSyncFlags.3,
doc/DlpResetRecordIndex.3, doc/DlpReadUserInfo.3,
doc/DlpReadSysInfo.3, doc/DlpReadStorageInfo.3,
doc/DlpReadResourceByIndex.3, doc/DlpReadRecordIDList.3,
doc/DlpReadRecordByID.3, doc/DlpReadOpenDBInfo.3,
doc/DlpReadNetSyncInfo.3, doc/DlpReadFeature.3,
doc/DlpReadDBList.3, doc/DlpReadAppPreference.3,
doc/DlpReadAppBlock.3, doc/DlpRPC.3, doc/DlpOpenDB.3,
doc/DlpOpenConduit.3, doc/DlpMoveCategory.3,
doc/DlpGetSysDateTime.3, doc/DlpEndOfSync.3,
doc/DlpDeleteRecord.3, doc/DlpCleanUpDataBase.3,
doc/DlpCallApplication.3, doc/DlpAddSyncLogEntry.3 (added): man
pages.
2001-08-22 Andrew Arensburger <[email protected]>
* src/spalm.c: Removed an "&". Not sure why. Probably because it
makes no difference, but some compiler complained.
* config.h.in: Added entry for bcopy.
* README: Updated for 2.2.0
* Make.rules.in: Added directory for function (section 3) man
pages.
2001-08-20 Andrew Arensburger <[email protected]>
* libpconn/PConnection_usb.c: Added Palm to list of expected
vendors, along with Handspring.
2001-08-15 Andrew Arensburger <[email protected]>
* doc/Makefile: Split $INFOFILES int $INFOFILES (foo.info) and
$EXTRA_INFOFILES
(foo.info-*) to work around 'make' complaints when there are no files
matching "*.info-*".
* src/conduit.c (bug fix): Fixed improper cut & paste.
* src/conduit.c (bug fix): Error message didn't perform sufficient
error-checking, dumped core.
* libpconn/PConnection.c: Renamed "fname" argument to "device",
for semi-consistency and creamy nougat filling.
2001-08-05 Andrew Arensburger <[email protected]>
* src/spalm.c, src/misc.c, libpdb/pdb.c, libpconn/slp.c,
libpconn/PConnection_net.c: Include <strings.h>. It might be
necessary.
* configure.in: Added test for bcopy().
2001-08-03 Andrew Arensburger <[email protected]>
* src/GenericConduit.cc (bug fix): SyncRecord didn't handle
correctly the case where a record has changed both on the Palm and
the desktop. Added some trace statements.
2001-08-02 Andrew Arensburger <[email protected]>
* libpconn/netsync.c, include/pconn/netsync.h: Moved ritual packet
declarations wholly into netsync.c, since they don't need to be
anywhere else.
2001-07-30 Andrew Arensburger <[email protected]>
- Version 2.2.0 released.
* i18n/it.po, i18n/fr.po, i18n/de.po: Latest version of strings.
* libpconn/PConnection_usbm50x.c: Added i18n support. Let
ritual_exch_server() do ritual packet exchange, instead of doing
it manually. pconn_usbm50x_open() now takes and sets protocol.
However, this module should go away soon.
* libpconn/PConnection_net.c: Moved the ritual packet exchanges
into their own functions. pconn_net_open() checks and sets the
protocol. The various methods now check pconn->protocol and act
accordingly.
* libpconn/PConnection_usb.c: pconn_usb_open() checks and sets the
protocol. The various methods now check pconn->protocol and act
accordingly.
* libpconn/PConnection_serial.c: pconn_serial_open() checks and
sets the protocol.
The various methods now check pconn->protocol and act accordingly.
This means that "serial" with protocol=simple should subsume the
usb_m50x stuff.
* libpconn/netsync.c: Added ritual_exch_server(),
ritual_exch_client(). Minor cleaning.
* src/coldsync.c: Added support for specifying protocol in
.coldsyncrc or command line. Pass this on to new_PConnection().
* src/lexer.l: Added keywords relating to "protocol:" directive,
including the names of the various protocols. Rearranged keywords
a bit.
* src/parser.y: Added rule for "protocol: <protocol>;" inside
listen {} blocks.
* src/spc.c: Reduced verbosity.
* src/config.c: Added "-P <protocol>" option. Fixed typo. Added
name2protocol().
* src/coldsync.h: Added 'protocol' command-line option.
* libpconn/PConnection.c: The pconn_<dev>_open() functions now
take a 'protocol' argument. new_PConnection() takes one, too, but
just passes it along to pconn_<dev>_open().
* include/pconn/netsync.h: Added declarations for ritual packet
exchange functions.
* include/pconn/PConnection.h: Added symbols for "software"
protocol stacks. Added protocol field to struct PConnection.
new_PConnection() now takes a protocol argument.
* conduits/copy-appinfo: Commented out a trace statement.
2001-07-28 Andrew Arensburger <[email protected]>
* AUTHORS: Added Mike Durian.
* libpconn/netsync.c: Use (*pconn->io_read)(), for proper
object-orientedness. (bug fix): Incorporated fix by Mike Durian
<[email protected]>: initialize netsync input buffer before use.
* libpconn/PConnection_usb.c: Use memcpy() instead of bcopy()
(it's more standard).
2001-07-26 Andrew Arensburger <[email protected]>
* libpconn/PConnection_usbm50x.c: Added Emacs magic.
2001-07-25 Andrew Arensburger <[email protected]>
* src/parser.y, src/lexer.l: Added "usb_m50x" keyword.
* libpconn/netsync.c, include/pconn/netsync.h: Changed "no_header"
argument from int to 'const Bool', since that's what was meant.
* AUTHORS: Added Koen Deforche.
* include/pconn/PConnection.h, include/pconn/netsync.h,
libpconn/Makefile, libpconn/PConnection.c,
libpconn/PConnection_net.c, libpconn/PConnection_usbm50x.c,
libpconn/netsync.c, src/config.c, include/pconn/pconn.h,
doc/coldsync.8: Incorporated Koen Deforche's M50x patch.
2001-07-15 Koen Deforche <[email protected]>
* PConnection.h, netsync.h, libpconn/Makefile, PConnection.c,
PConnection_net.c, PConnection_usbm50x.c, netsync.c, config.c:
Support for Palm m50x USB cradle (Linux).
2001-07-11 Andrew Arensburger <[email protected]>
* libpconn/dlp_cmd.c, include/pconn/dlp_cmd.h: Fixed
DlpWriteNetSyncInfo() API so it doesn't suck as bad.
2001-07-09 Andrew Arensburger <[email protected]>
* include/pconn/dlp_cmd.h, libpconn/dlp_cmd.c: Got rid of bogus
struct dlp_readrecret.
* Make.rules.in: Take CXXFLAGS from configuration. Why wasn't this
done before?
* include/pconn/dlp_cmd.h: Rearranged into sections, one per DLP
call. Added some missing flags and whatnot. General cleanup.
* configure.in: Changed version number (tag) for development
branch.
2001-07-06 Andrew Arensburger <[email protected]>
* include/pconn/pconn.h: Added declaration for crc16().
* libpconn/Makefile: Added crc.c to source. Generate .o files via
a macro, instead of listing them individually.
* libpconn/slp.c: Took out some useless #includes.
* libpconn/util.c, include/pconn/util.h: Moved CRC-related stuff
elsewhere, since this file is effectively shared with libpdb.
* libpconn/crc.c (added): Moved CRC-related stuff into a separate
file.
2001-07-02 Andrew Arensburger <[email protected]>
* libpdb/pdb.c: More verbose error messages: where possible,
indicate which database they pertain to.
2001-06-30 Andrew Arensburger <[email protected]>
-- On stable branch:
- Version 2.1.3 released.
* AUTHORS: Added Alessandro Gatti.
* i18n/Makefile: Added Italian to list of languages.
* palm.c (bug fix, #41): Fixed off-by-one error when appending
records to dblist.
(If you installed a file by putting it in ~/.palm/install, the
database list got messed up, and the main sync failed and dumped
core.)
-- End stable branch.
2001-06-30 Andrew Arensburger <[email protected]>
* libpconn/PConnection.c: "PConnection.h" will eventually get
installed in /usr/include, so moved all of the
"config.h"-dependent stuff out of there and into here.
* include/pconn/PConnection.h: Since this file will eventually be
installed in /usr/include, removed all of the stuff that obviously
depends on "config.h", and moved it to PConnection.c.
* src/spalm.c (bug fix, #41): Fixed off-by-one error when
appending records to dblist.
(If you installed a file by putting it in ~/.palm/install, the
database list got messed up, and the main sync failed and dumped
core.)
2001-06-26 Andrew Arensburger <[email protected]>