Click here to Skip to main content
15,893,622 members
Articles / Mobile Apps

Palm OS 3.5 Development -- Part 2, HotSync Conduits

Rate me:
Please Sign up or sign in to vote.
4.52/5 (8 votes)
4 Jan 2006CPOL11 min read 59.8K   200   21  
An introduction to Palm OS development - HotSync conduits.
/*****************************************************************************
 *
 * Generic Conduit Export Functions Header File
 *
 ****************************************************************************/


#ifndef  __GENERIC_MAIN_CONDUIT__
#define  __GENERIC_MAIN_CONDUIT__
#include <condapi.h>

#define GENERIC_CONDUIT_VERSION 0x00000102

#ifndef ExportFunc
#ifdef _68K_
#define ExportFunc
#else
#define ExportFunc __declspec( dllexport )
#endif
#endif

extern "C" {

typedef  long (*PROGRESSFN) (char*);
ExportFunc long OpenConduit(PROGRESSFN, CSyncProperties&);
ExportFunc long GetConduitName(char*,WORD);
ExportFunc DWORD GetConduitVersion();
ExportFunc long ConfigureConduit(CSyncPreference& pref);
ExportFunc long GetConduitInfo(ConduitInfoEnum infoType, void *pInArgs, void *pOut, DWORD *dwOutSize);

#ifdef macintosh
	pascal OSErr __initialize(const CFragInitBlock *theInitBlock);
	pascal void __terminate(void);
	pascal OSErr ConduitInit(const CFragInitBlock *theInitBlock);
	pascal void ConduitExit(void);
#endif
}


#endif


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
Developer for hire.
.NET/C# ; PalmOS ; SQL ; Win32/MFC/COM/ADO/DirectX ; ASP/VBScript/PerlScript ; Perl/CGI/mod_perl ; HTML/Javascript ; C/C++ ; x86 ; 6502 ; AtariBasic ... what's next?

On my free time, I'm also a big sports car buff and apprentice do it yourself home improvement contractor.

Feel free to discuss. Visit my home page at www.explodingcoder.com or email me at spoulson@explodingcoder.com.

Comments and Discussions