1999-12-03  Eskil Heyn Olsen  <deity@eskil.dk>

	* manager.c (iterate_dbs): Commented out the DB info printing.

	* gpilotd.c (do_sync): Adds a log entry to pilot when done.

1999-11-30  Eskil Heyn Olsen  <deity@eskil.dk>

	* queue_io.c: Fixed GREQ_CONDUIT, the conduit name was wrongly
	written and the sync type not written at all. Duh! This queue
	stuff still has to change, it will come back and haunt me.

	* gnome-pilot-conduit-standard-abs.c (standard_abs_sync_record):
	Wrote sketches for case 11-15 (archiving). More dlp_AddSync log calls.

	* gnome-pilot-conduit-standard.h: Added a
	gnome_pilot_conduit_standard_set_slow which sets conduit->slow =
	TRUE, thereby causing next synchronize to be a slowsync. Conduits
	can call this in pre_sync if they need to sync slow. Also removed
	the boolean argument to synchronize.

	* gnome-pilot-conduit-standard-abs.c
	(gnome_pilot_conduit_standard_real_synchronize): sets
	conduit->slow = FALSE so only 1 sync after set_slow is slow.

	* manager.c (conduit_sync_default): Use
	gnome_pilot_conduit_standard_set_slow now.
	
	* gnome-pilot-conduit-standard-abs.c
	(gnome_pilot_conduit_standard_real_copy_to_pilot): sets
	pilotassigned record id on copy_to_pilot.

1999-11-22  Eskil Heyn Olsen  <deity@eskil.dk>

	* orbit_daemon_glue.c: corba stuff to notify clients on conduit start/end.

	* manager.c (conduit_synchronize): Code that asks the corba stuff
	to notify clients on conduit start/end

	* lib-gpilotd.c (cb_conduit_start): added conduit_start and
	conduit_end support. Also initial conduit_message/error/progress.

	* gpilotd.c (pilot_connect): Added an exit -1 if binding to the
	pilot device fails. This prevents a cpu hog loop, plus this is
	actually fatal. (no its not, it's only fatal when there is only
	one device)

	* gpilotd-app-dummy-callbacks.h (gpilotd_conduit_start): dummy
	callbacks for conduit start/end

	* gpilotd-app.h: added externs for the new callbacks (conduit start/end)

	* gnome-pilot-dbinfo.h (struct _GnomePilotDBInfo): Added a gchar
	pilotId, carries the pilot string name.

	* gnome-pilot-conduit.h: Added some prototypes for the progress
	bar stuff. No code yet.

	* gnome-pilot-conduit.c (gnome_pilot_conduit_init): does some
 	g_return_if_fails.

	* gnome-pilot-conduit-standard.c
	(gnome_pilot_conduit_standard_finalize): Changed a cast to remove
	a compiler warning.

	* Makefile.am (gpilotd_SOURCES): Removed gnome-pilot-conduit* and
	added libgconduit instead. Now we should be able to LGPL
	libgconduit and keep gpilotd GPL'ed.

1999-11-20  Vadim Strizhevsky  <vadim@optonline.net>

	* manager.c, gpilotd.c, queue_io.c: Fix minor memory leaks
	as reported by memprof. There are some more but I either can't 
	figure them out or they are false positives.

1999-11-09  Eskil Heyn Olsen  <deity@eskil.dk>

	* manager.c (gpilot_load_conduits): removed conduit_sync_type,
	unused variable.

	* gnome-pilot-conduit-standard-abs.h (struct
	_GnomePilotConduitStandardAbsClass): Added GSList recordsToIgnore
	and removed the post_sync decl.

	* gnome-pilot-conduit-standard-abs.c (standard_abs_add_to_pilot):
	adds record it to recordIdsToIgnore. This makes sync_record ignore 
	these records later during the sync. Needed since adding/updating
	the record on the pilot sets its dirty bit, thus a later iteration 
	over modified records will re-sync the record, which eg. in case
	10 causes data loss.
	(standard_abs_sync_record):  check id in recordIdsToIgnore and
	return immediately if match.

1999-11-05  Vadim Strizhevsky  <vadim@optonline.net>
	
	* manager.c: Fix typo of config entry, It should be "slow_sync". Also
	reverse the if to call conduit_slow_synchronize when slow_sync=TRUE
	
	* gnome-pilot-conduit-standard-abs.c: Use enum dlpOpenReadWrite instead
	of 0x40|0x80 for readability

1999-11-05  Eskil Heyn Olsen  <deity@eskil.dk>

	* manager.c (gpilot_load_conduits): If no first_sync_type
	specified, default to NotSet, otherwise sync_default's switch ends 
	up in default:...

	* lib-gpilotd.c: shutdown doens't make a call got
	goad_server_unregister anymore.

1999-11-02  Eskil Heyn Olsen  <deity@eskil.dk>

	* lib-conduitmgmt.c (USE_GMODULE): Quick patch to output
	errormessage from g_module_open/dlopen. Makes it easier to find
	out why a conduit .so cannot be loaded.

	* manager.c (gpilot_load_conduits): Suppress CRITICAL warning by
	calling gnome_pilot_conduit_sync_type_str_to_int with a NULL pointer.

1999-11-02  Eskil Heyn Olsen  <deity@eskil.dk>

	* Makefile.am: added G_LOG_DOMAIN="gpilotd"

	* gnome-pilot-conduit-standard-*: the synchronize now takes a
	extra bool argument. if TRUE, slow sync is forced.

	* manager.c: added a conduit_slow_synchronize that calls a forced
	slow synchronization. Also added a
	gpilot_remove_first_sync_settings call, removes the first_sync
	info in the conduitsPILOTID file. More calls are needed.
	
1999-10-31  Vadim Strizhevsky  <vadim@optonline.net>

	* manager.c: fix calls to install_foreach to pass correct
	second argument.

1999-11-01  Eskil Heyn Olsen  <deity@eskil.dk>

	* gnome-pilot-conduit.*[ch]: Added
	GnomePilotConduitSyncTypeNotSet, indicates a NULL sync type.

	* gnome-pilot-dbinfo.h: insert the PilotUser structure in the
	comment, as reference.

	* gpilotd-conduit-mgmt.h,lib-conduitmgmt.h: Added
 	gpilotd_conduit_mgmt_enable_with_first_sync, as
	gpilotd_conduit_mgmt_enable, but with parameters that specify what 
	to do on the first sync after enabling.

	* manager.c: Added support for the first sync after enabling stuff 
	from gpilotd-conduit-mgmt.h. Also slaughtered gpilot_load_conduit
	to take a manager info object as parameter.

1999-10-26 Vadim Strizhvesky <vadim@optonline.net>

	* gnome-pilot-conduit.c: Fix sync_type conversion routines to
	return GnomePilotConduitSyncTypeCustom for "custom" case. It matters
	now. Also fix handling potential invalid arguments.

	
1999-10-26  Eskil Heyn Olsen  <deity@eskil.dk>

	* gpilotd.c (pilot_connect): Fixed the set baud rate thingy.

	* gnome-pilot-conduit-standard-abs.c: Added a
 	standard_abs_close_db_and_purge_local, called at the end of every
 	sync type to close db on the pilot, and make the conduit purge is
 	deleted records. Improved generel code readability (I hope), fixed
 	intitial conduit cast and check in the sync type calls
 	(gnome_pilot_conduit_statnd_abs_real_*).

	* gnome-pilot-conduit.[ch]: Added the
	gnome_pilot_conduit_sync_type_str_to_int and int_to_str. Returns
	strings/int when given a GnomePilotConduitSyncType as int/string.

	* gpilot-userinfo.c: uses
	gnome_pilot_conduit_sync_type_str_to_int.

	* gpilotd.c: code readability modifications. Revamps to make the
	default_sync_action usage work.

	* manager.c: revamped for the default_sync_action. Added support
	for merge_to/from_pilot.

	* orbit_daemon_glue.c: modified according to changes in idl. Also
	uses GnomePilotConduitSyncType enum now.

	* queue_io.[ch]: Uses GnomePilotConduitSyncType enum now. Support
	for merge_to/from_pilot when doing a conduit request.

	Basically heres how syncing works now:

	- first manager.c: gpilot_initial_synchronize_operations is
 	called. This handles get_sysinfo, restore and conduit
 	requests. The two latter causes synchronization to be stopped
 	after they're completed.

	- then one of the six manager.c: gpilot_synchronize,
 	gpilot_copy_to_pilot, gpilot_copy_from_pilot,
 	gpilot_merge_to_pilot, gpilot_merge_from_pilot,
 	gpilot_sync_default is called. This depends on the
 	default_sync_action set for the pilot. The first five call the
 	corresponding method in the conduit, thereby dictating how to
 	synchronize. The last (sync_default) is used when
	default_sync_action is set to "custom", and uses the
	synchronization specified in conduitsPILOTID to decide how to
	synchronize. This setting therefore lets each conduit have its own 
	specified way to do the sync.

	File installation happens on synchronize, copy_to_pilot,
	merge_to_pilot and default.

	Hope this clears up the mess.
		
	
1999-10-24  Eskil Heyn Olsen  <deity@eskil.dk>

	* gpilotd.c: Moved Alan Shutko's baudrate thing to
 	pilot_set_baud_rate.

	* gnome-pilot-conduit-standard-abs.c (gpilot_sync_pc_match): as
	the 3Com conduit techinfo says, fast sync is solely defined using
	the sync_pc_id.

1999-10-22  Alan Shutko  <ats@acm.org>
 
       * gpilotd.c (pilot_connect): Set PILOTRATE env variable before
       calling pi_bind.  Added new argument to specify the desired rate.
       (sync_foreach): Pass device->speed to pilot_connect for above change.

1999-10-23 Vadim Strizhvesky <vadim@optonline.net>

	* gpilotd-conduit-mgmt.h, lib-conduitmgmt.c: added 
	gpilotd_conduit_mgmt_get_sync_type for conduits to figure out
	current sync_type

Sat Oct 23 19:44:55 CEST 1999, Eskil Olsen <deity@eskil.dk>
 	
	* gnome-pilot-conduit.h: now has the GnomePilotConduitSyncType
	enum, added enums for the Merge types. Will hack manager to use
	this enum instead.

	* gpilotd-conduit-mgmt.h: removed the GnomePilotConduitSyncType.

1999-10-22  Eskil Olsen <deity@eskil.dk>

	* gpilotd-conduit-mgmt.h: revamped all call to take a pilotId
	instead of pilotName as argument.

	* lib-conduitmgmt.h: same as gpilotd-conduit-mgmt.h, also uses
	g_strdup_printf instead of g_snprintf now.

	* lib-gpilotd.c: implemented the get_pilot_ids function. Also
	updated to match the idl sequences renaming.

	* orbit_daemon_glue.c: implemented the get_pilot_ids
 	function. Also updated to match the idl sequences renaming.
	
	* manager.c:gpilot_load_conduits: moved some g_free code around in 
	the if blocks, prevents a sigsegv during errors. Also changed to
	uses conduits%pilotid instead of conduits%pilotenumeration as
	config file for determining conduits to load.
	
1999-10-21  Eskil Olsen <deity@eskil.dk>

	* gnome-pilot-conduit-standard-abs.c: Fixed bugs in sync logic
 	found by Vadim Strizhevsky. Also fixed bug in sync_records, where
 	the id in the newly read remote records wasn't set.

	* manager.c: checks db flags before handing over to
 	conduits, doesn't use g_module now... (must find that bug...)

1999-09-28  Jonathan Blandford  <jrb@redhat.com>

	* gnome-pilot-conduit*.c (*_finalize): Added finalize calls.

1999-08-07  Peter Teichman  <pat4@acpub.duke.edu>

	* gnome-pilot-conduit-standard-abs.c
	(SyncRecord): reverted my last change to SyncRecord - it was
	completely wrong	

1999-08-03  Peter Teichman  <pat4@acpub.duke.edu>

	* gnome-pilot-conduit-standard-abs.c
	(gnome_pilot_conduit_standard_real_synchronize): open & close the
	database at appropriate times.. makes the FastSync & SlowSync
	loops work

	(SyncRecord): call store_remote when we change a record on the
	pilot, but not the desktop
	
	* gnome-pilot-conduit-standard.c
	(gnome_pilot_conduit_standard_get_type): fixed a nasty object
	creation bug

	* orbit_daemon_glue.c: removed some cleanup code that appeared to
	do nothing but segfault

1999-07-30  Jonathan Blandford  <jrb@redhat.com>

	* Makefile.am (libconduitincludedir): install the libconduit headers.

Tue Nov 24 20:44:03 EST 1998
        *conduit_support.c: 
	*conduit_support.h: Added support for conduits
	                    getting CORBA_ORB struct from gpilotd
	
Wed Nov  4 14:34:34 EST 1998 Jonathan Blandford <jrb@redhat.com>
	*gpilotd.c: Moved out GPilot* structure manipulations.
	*gpilot-structure.c: Added file.
	*gpilot-userinfo.c: Added file.	

Fri Aug 21 10:21:35 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
	*gpilotd.c: Added support for pid files
	*gpilotd.c: Added SIGHUP reread of config files
	
Tue Aug 18 20:35:07 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
	*manager.c:
	*manager.h: Make gpilotd use gmodule for better portability
	*Makefile.am: Make gmodule link to gpilotd
	
Fri Aug  7 01:11:32 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
	*gpilotd.c: Add missing "lock" around a list

Fri Aug  7 00:11:46 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>

	*gpilotd.c: Fixed lots of race conditions.  A few are left but
	hopefully they never happen :).
	*gpilotd.c: Add support for last sync PC
	*manager.c: same as above
	*manager.h: same as above	
	*conduit_support.c: same as above
	*Makefile.am: Changed gpilotd's link flags to solve conduit 
	loading problems.
	
Thu Aug  6 20:57:59 EDT 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>

	*gpilotd.c: Fork for each syncing device so simultaneous syncs on
	different cradles works.
	
