User:Wishmaster: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
mNo edit summary
(corrected links to non-existent Template:Lang ; the remarks don't indicate the actual language of pages by the links)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Changes for Plugin developers==
{{PageLang|de}}
In Miranda NG, we made some changes, that made the plugins from Miranda IM incompatible. These are just the major changes:
<subpages />
 
*{{FLURL|2=4483}} {{RefLang|en}}
# '''PLUGININFOEX:''' The old PLUGININFO struct from Miranda IM was removed from all sources. Basically, it was also deprecated in Miranda IM, but Miranda IM continued to load plugins with only PLUGININFO support for legacy plugin support. Our PLUGININFOEX is almost the same as Miranda IM, but we removed the member <tt>int replacesDefaultModule;</tt> (in Miranda IM headers it says "WILL BE DEPRECATED in 0.8" in the documentation of the member). The compiler should warn you anyways if you do not remove it in your code.
*{{FLURL|cat|2}} {{RefLang|de}}
 
*{{FLURL|chl|2}} {{RefLang|fr}}
<pre>typedef struct PLUGININFOEX_tag
{
int cbSize;
char *shortName;
DWORD version;
char *description;
char *author;
char *authorEmail;
char *copyright;
char *homepage;
BYTE flags;   // right now the only flag, UNICODE_AWARE, is recognized here
MUUID uuid;    // plugin's unique identifier
}
PLUGININFOEX;</pre>
# '''PLUGINLINK''' is gone. The CallService macros using the PLUGINLINK are now replaced with the functions in <tt>m_core.h</tt> (like CallService, HookEvent etc.). The compiler should not complain about it. As a result, the <tt>Load</tt> function does not take any parameter.
# The <tt>DBGetContactSetting</tt>/<tt>DBWriteContactSetting</tt> functions are renamed with the <tt>db_get</tt>/<tt>db_set</tt> functions from the <tt>m_core.h</tt>.

Latest revision as of 15:12, 6 December 2015

<subpages />