From f56c7ac5e668acd8633e8c91b438fec506162fc2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 8 Oct 2023 15:35:54 +0300 Subject: YAMN: another bunch of services removed --- plugins/ExternalAPI/m_yamn.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'plugins/ExternalAPI/m_yamn.h') diff --git a/plugins/ExternalAPI/m_yamn.h b/plugins/ExternalAPI/m_yamn.h index 77ea3cb676..0b4a9f306d 100644 --- a/plugins/ExternalAPI/m_yamn.h +++ b/plugins/ExternalAPI/m_yamn.h @@ -15,22 +15,6 @@ struct YAMN_VARIABLES int Shutdown; }; -// -//================================== EXPORTED FUNCTIONS STRUCT =============================== -// - -struct CExportedFunctions -{ - char* ID; - void *Ptr; -}; - -struct CExportedServices -{ - char* ID; - INT_PTR (* Ptr)(WPARAM,LPARAM); -}; - // //================================== YAMN EVENTS ================================== // @@ -50,24 +34,6 @@ struct CExportedServices //================================== YAMN SERVICES ================================== // -//GetFcnPtr Service -//Your plugin can co-operate with YAMN in 2 ways: with Miranda services and with YAMN exported functions -//Some commands are written in services, some are functions. The advantage of function calling instead of -//service calling is, that your code is more clear and it is faster than service calling (smaller, FASTER, -//easier- it is slogan of Miranda, isn't it ?). Miranda service has only 2 parameters, that can be -//disadvantage too. -//In every way, it is discutable which functions should be exported or if they should be implemented as -//services. And if YAMN should export some functions etc. Functions not used very often are now implemented -//as Miranda services. -// -//This service gets pointer to YAMN function. Then you can use function directly. In m_?????.h files you have -//definitions of some functions, with definitions of structure variable, so you can use functions very -//clearly, just look to header file. -//WPARAM- function ID. It is string representating function you need to get pointer (e.g. YAMN_WRITEWAITID) -//LPARAM- not used now, but set it to 0 -//returns pointer to YAMN function or NULL when functions does not exist -#define MS_YAMN_GETFCNPTR "YAMN/Service/GetFcn" - //ForceCheck Service //Check mail on accounts //WPARAM- not used -- cgit v1.2.3