diff options
Diffstat (limited to 'include/newpluginapi.h')
| -rw-r--r-- | include/newpluginapi.h | 66 | 
1 files changed, 24 insertions, 42 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index a8a5c619c7..0f2a6aa8d7 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -29,30 +29,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  #define PLUGIN_MAKE_VERSION(a, b, c, d)   (((((DWORD)(a))&0xFF)<<24)|((((DWORD)(b))&0xFF)<<16)|((((DWORD)(c))&0xFF)<<8)|(((DWORD)(d))&0xFF))
  #define MAXMODULELABELLENGTH 64
 -#if defined( _UNICODE )
 +#if defined(_UNICODE)
  	#define UNICODE_AWARE 1
  #else
  	#define UNICODE_AWARE 0
  #endif
 -typedef struct {
 -	int cbSize;
 -	char *shortName;
 -	DWORD version;
 -	char *description; // [TRANSLATED-BY-CORE]
 -	char *author;
 -	char *authorEmail;
 -	char *copyright;
 -	char *homepage;
 -	BYTE flags;	   // right now the only flag, UNICODE_AWARE, is recognized here
 -	int replacesDefaultModule;		   //one of the DEFMOD_ constants in m_plugins.h or zero
 -	         //if non-zero, this will supress the loading of the specified built-in module
 -			 //with the implication that this plugin provides back-end-compatible features
 -} PLUGININFO;
 -
 -/* 0.7+
 -   New plugin loader implementation
 -*/
  /* The UUID structure below is used to for plugin UUID's and module type definitions */
  typedef struct _MUUID {
    unsigned long a;
 @@ -67,30 +49,30 @@ typedef struct _MUUID {  /* Replaceable internal modules interface ids */
  #define MIID_HISTORY        {0x5ca0cbc1, 0x999a, 0x4ea2, {0x8b, 0x44, 0xf8, 0xf6, 0x7d, 0x7f, 0x8e, 0xbe}}
 -#define MIID_UIFINDADD      {0xb22c528d, 0x6852, 0x48eb, {0xa2, 0x94, 0xe, 0x26, 0xa9, 0x16, 0x12, 0x13}}
 +#define MIID_UIFINDADD      {0xb22c528d, 0x6852, 0x48eb, {0xa2, 0x94, 0x0e, 0x26, 0xa9, 0x16, 0x12, 0x13}}
  #define MIID_UIUSERINFO     {0x570b931c, 0x9af8, 0x48f1, {0xad, 0x9f, 0xc4, 0x49, 0x8c, 0x61, 0x8a, 0x77}}
  #define MIID_SRURL          {0x5192445c, 0xf5e8, 0x46c0, {0x8f, 0x9e, 0x2b, 0x6d, 0x43, 0xe5, 0xc7, 0x53}}
  #define MIID_SRAUTH         {0x377780b9, 0x2b3b, 0x405b, {0x9f, 0x36, 0xb3, 0xc4, 0x87, 0x8e, 0x6f, 0x33}}
 -#define MIID_SRAWAY         {0x5ab54c76, 0x1b4c, 0x4a00, {0xb4, 0x4, 0x48, 0xcb, 0xea, 0x5f, 0xef, 0xe7}}
 -#define MIID_SREMAIL        {0xd005b5a6, 0x1b66, 0x445a, {0xb6, 0x3, 0x74, 0xd4, 0xd4, 0x55, 0x2d, 0xe2}}
 +#define MIID_SRAWAY         {0x5ab54c76, 0x1b4c, 0x4a00, {0xb4, 0x04, 0x48, 0xcb, 0xea, 0x5f, 0xef, 0xe7}}
 +#define MIID_SREMAIL        {0xd005b5a6, 0x1b66, 0x445a, {0xb6, 0x03, 0x74, 0xd4, 0xd4, 0x55, 0x2d, 0xe2}}
  #define MIID_SRFILE         {0x989d104d, 0xacb7, 0x4ee0, {0xb9, 0x6d, 0x67, 0xce, 0x46, 0x53, 0xb6, 0x95}}
 -#define MIID_UIHELP         {0xf2d35c3c, 0x861a, 0x4cc3, {0xa7, 0x8f, 0xd1, 0xf7, 0x85, 0x4, 0x41, 0xcb}}
 +#define MIID_UIHELP         {0xf2d35c3c, 0x861a, 0x4cc3, {0xa7, 0x8f, 0xd1, 0xf7, 0x85, 0x04, 0x41, 0xcb}}
  #define MIID_UIHISTORY      {0x7f7e3d98, 0xce1f, 0x4962, {0x82, 0x84, 0x96, 0x85, 0x50, 0xf1, 0xd3, 0xd9}}
  #define MIID_AUTOAWAY       {0x9c87f7dc, 0x3bd7, 0x4983, {0xb7, 0xfb, 0xb8, 0x48, 0xfd, 0xbc, 0x91, 0xf0}}
  #define MIID_USERONLINE     {0x130829e0, 0x2463, 0x4ff8, {0xbb, 0xc8, 0xce, 0x73, 0xc0, 0x18, 0x84, 0x42}}
 -#define MIID_IDLE           {0x296f9f3b, 0x5b6f, 0x40e5, {0x8f, 0xb0, 0xa6, 0x49, 0x6c, 0x18, 0xbf, 0xa}}
 +#define MIID_IDLE           {0x296f9f3b, 0x5b6f, 0x40e5, {0x8f, 0xb0, 0xa6, 0x49, 0x6c, 0x18, 0xbf, 0x0a}}
  #define MIID_FONTSERVICE    {0x56f39112, 0xe37f, 0x4234, {0xa9, 0xe6, 0x7a, 0x81, 0x17, 0x45, 0xc1, 0x75}}
 -#define MIID_UPDATENOTIFY   {0x4e68b12a, 0x6b54, 0x44de, {0x86, 0x37, 0xf1, 0x12, 0xd, 0xb6, 0x81, 0x40}}
 +#define MIID_UPDATENOTIFY   {0x4e68b12a, 0x6b54, 0x44de, {0x86, 0x37, 0xf1, 0x12, 0x0d, 0xb6, 0x81, 0x40}}
  #define MIID_CRYPTO         {0x415ca6e1, 0x895f, 0x40e6, {0x87, 0xbd, 0x9b, 0x39, 0x60, 0x16, 0xd0, 0xe5}}
  /* Common plugin interfaces (core plugins) */
 -#define MIID_DATABASE       {0xae77fd33, 0xe484, 0x4dc7, {0x8c, 0xbc, 0x9, 0x9f, 0xed, 0xcc, 0xcf, 0xdd}}
 -#define MIID_CLIST          {0x9d8da8bf, 0x665b, 0x4908, {0x9e, 0x61, 0x9f, 0x75, 0x98, 0xae, 0x33, 0xe}}
 +#define MIID_DATABASE       {0xae77fd33, 0xe484, 0x4dc7, {0x8c, 0xbc, 0x09, 0x9f, 0xed, 0xcc, 0xcf, 0xdd}}
 +#define MIID_CLIST          {0x9d8da8bf, 0x665b, 0x4908, {0x9e, 0x61, 0x9f, 0x75, 0x98, 0xae, 0x33, 0x0e}}
  #define MIID_CHAT           {0x23576a43, 0x3a26, 0x4357, {0x9b, 0x1b, 0x4a, 0x71, 0x9e, 0x42, 0x5d, 0x48}}
  #define MIID_SRMM           {0x58c7eea6, 0xf9db, 0x4dd9, {0x80, 0x36, 0xae, 0x80, 0x2b, 0xc0, 0x41, 0x4c}}
 -#define MIID_IMPORT         {0x5f3bcad4, 0x75f8, 0x476e, {0xb3, 0x6b, 0x2b, 0x30, 0x70, 0x32, 0x49, 0xc}}
 +#define MIID_IMPORT         {0x5f3bcad4, 0x75f8, 0x476e, {0xb3, 0x6b, 0x2b, 0x30, 0x70, 0x32, 0x49, 0x0c}}
  #define MIID_IMGSERVICES    {0xf3974915, 0xc9d5, 0x4c87, {0x85, 0x64, 0xa0, 0xeb, 0xf9, 0xd2, 0x5a, 0xa0}}
 -#define MIID_TESTPLUGIN     {0x53b974f4, 0x3c74, 0x4dba, {0x8f, 0xc2, 0x6f, 0x92, 0xfe, 0x1, 0x3b, 0x8c}}
 +#define MIID_TESTPLUGIN     {0x53b974f4, 0x3c74, 0x4dba, {0x8f, 0xc2, 0x6f, 0x92, 0xfe, 0x01, 0x3b, 0x8c}}
  /* Common plugin interfaces (non-core plugins) */
  #define MIID_VERSIONINFO    {0xcfeb6325, 0x334e, 0x4052, {0xa6, 0x45, 0x56, 0x21, 0x93, 0xdf, 0xcc, 0x77}}
 @@ -101,12 +83,12 @@ typedef struct _MUUID {  #define MIID_MIRPY          {0xcff91a5c, 0x1786, 0x41c1, {0x88, 0x86, 0x09, 0x4b, 0x14, 0x28, 0x1f, 0x15}}
  #define MIID_SERVICESLIST   {0xcf4bdf02, 0x5d27, 0x4241, {0x99, 0xe5, 0x19, 0x51, 0xaa, 0xb0, 0xc4, 0x54}}
  #define MIID_TRANSLATOR     {0xcfb637b0, 0x7217, 0x4c1e, {0xb2, 0x2a, 0xd9, 0x22, 0x32, 0x3a, 0x5d, 0x0b}}
 -#define MIID_TOOLTIPS       {0xbcbda043, 0x2716, 0x4404, {0xb0, 0xfa, 0x3d, 0x2d, 0x93, 0x81, 0x9e, 0x3}}
 -#define MIID_POPUPS         {0x33299069, 0x1919, 0x4ff8, {0xb1, 0x31, 0x1d, 0x7, 0x21, 0x78, 0xa7, 0x66}}
 -#define MIID_LOGWINDOW		{0xc53afb90, 0xfa44, 0x4304, {0xbc, 0x9d, 0x6a, 0x84, 0x1c, 0x39, 0x05, 0xf5}}
 +#define MIID_TOOLTIPS       {0xbcbda043, 0x2716, 0x4404, {0xb0, 0xfa, 0x3d, 0x2d, 0x93, 0x81, 0x9e, 0x03}}
 +#define MIID_POPUPS         {0x33299069, 0x1919, 0x4ff8, {0xb1, 0x31, 0x1d, 0x07, 0x21, 0x78, 0xa7, 0x66}}
 +#define MIID_LOGWINDOW      {0xc53afb90, 0xfa44, 0x4304, {0xbc, 0x9d, 0x6a, 0x84, 0x1c, 0x39, 0x05, 0xf5}}
  #define MIID_EVENTNOTIFY    {0xF3D7EC5A, 0xF7EF, 0x45DD, {0x8C, 0xA5, 0xB0, 0xF6, 0xBA, 0x18, 0x64, 0x7B}}
  #define MIID_SRCONTACTS     {0x7CA6050E, 0xBAF7, 0x42D2, {0xB9, 0x36, 0x0D, 0xB9, 0xDF, 0x57, 0x2B, 0x95}}
 -#define MIID_HISTORYEXPORT  {0x18fa2ade, 0xe31b, 0x4b5d, {0x95, 0x3d, 0xa, 0xb2, 0x57, 0x81, 0xc6, 0x4}}
 +#define MIID_HISTORYEXPORT  {0x18fa2ade, 0xe31b, 0x4b5d, {0x95, 0x3d, 0x0a, 0xb2, 0x57, 0x81, 0xc6, 0x04}}
  /* Special exception interface for protocols.
     This interface allows more than one plugin to implement it at the same time
 @@ -184,10 +166,10 @@ typedef struct tagPLUGINLINK {  	int (*SetHookDefaultForHookableEvent) (HANDLE, MIRANDAHOOK); // v0.3.4 (2004/09/15)
  	HANDLE (*CreateServiceFunctionParam)(const char *, MIRANDASERVICEPARAM, LPARAM); // v0.7+ (2007/04/24)
  	int (*NotifyEventHooksDirect)(HANDLE, WPARAM, LPARAM); // v0.7+
 -	INT_PTR (*CallProtoService)(const char *, const char *, WPARAM, LPARAM );
 -	INT_PTR (*CallContactService)( HANDLE, const char *, WPARAM, LPARAM );
 +	INT_PTR (*CallProtoService)(const char *, const char *, WPARAM, LPARAM);
 +	INT_PTR (*CallContactService)(HANDLE, const char *, WPARAM, LPARAM);
  	HANDLE (*HookEventParam)(const char *, MIRANDAHOOKPARAM, LPARAM);
 -	HANDLE (*HookEventObj)(const char *, MIRANDAHOOKOBJ, void* );
 +	HANDLE (*HookEventObj)(const char *, MIRANDAHOOKOBJ, void*);
  	HANDLE (*HookEventObjParam)(const char *, MIRANDAHOOKOBJPARAM, void*, LPARAM);
  	HANDLE (*CreateServiceFunctionObj)(const char *, MIRANDASERVICEOBJ, void*);
  	HANDLE (*CreateServiceFunctionObjParam)(const char *, MIRANDASERVICEOBJPARAM, void*, LPARAM);
 @@ -247,7 +229,7 @@ typedef struct {  	/*
  	returns what the driver can do given the flag
  	*/
 -	int (*getCapability) ( int flag );
 +	int (*getCapability) (int flag);
  	/*
  		buf: pointer to a string buffer
 @@ -257,7 +239,7 @@ typedef struct {  			e.g. "Database driver for 3.xx profiles"
  		Returns: 0 on success, non zero on failure
  	*/
 -	int (*getFriendlyName) ( char * buf, size_t cch, int shortName );
 +	int (*getFriendlyName) (char * buf, size_t cch, int shortName);
  	/*
  		profile: pointer to a string which contains full path + name
 @@ -267,7 +249,7 @@ typedef struct {  		Note: Do not initialise internal data structures at this point!
  		Returns: 0 on success, non zero on failure - error contains extended error information, see EMKPRF_*
  	*/
 -	int (*makeDatabase) ( char * profile, int * error );
 +	int (*makeDatabase) (char * profile, int * error);
  	/*
  		profile: [in] a null terminated string to file path of selected profile
 @@ -279,21 +261,21 @@ typedef struct {  			etc.
  		Returns: 0 on success, non zero on failure
  	*/
 -	int (*grokHeader) ( char * profile, int * error );
 +	int (*grokHeader) (char * profile, int * error);
  	/*
  	Affect: Tell the database to create all services/hooks that a 3.xx legecy database might support into link,
  		which is a PLUGINLINK structure
  	Returns: 0 on success, nonzero on failure
  	*/
 -	int (*Load) ( char * profile, void * link );
 +	int (*Load) (char * profile, void * link);
  	/*
  	Affect: The database plugin should shutdown, unloading things from the core and freeing internal structures
  	Returns: 0 on success, nonzero on failure
  	Note: Unload() might be called even if Load() was never called, wasLoaded is set to 1 if Load() was ever called.
  	*/
 -	int (*Unload) ( int wasLoaded );
 +	int (*Unload) (int wasLoaded);
  } DATABASELINK;
  | 
