------------------------------------------------------------
revno: 6
committer: crise <[email protected]>
branch nick: ExamplePlugin
timestamp: Sun 2012-12-30 03:33:11 +0200
message:
Hopefully add back everything lost in r5 merge
fix return type for chat hook (dcpp doesn't react to it but others might)
modified:
src/Plugin.c
--
lp:~dcplusplus-team/dcpp-plugin-sdk-c/ExamplePlugin
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-c/ExamplePlugin
Your team Dcplusplus-team is subscribed to branch
lp:~dcplusplus-team/dcpp-plugin-sdk-c/ExamplePlugin.
To unsubscribe from this branch go to
https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-c/ExamplePlugin/+edit-subscription
=== modified file 'src/Plugin.c'
--- src/Plugin.c 2012-12-27 21:29:11 +0000
+++ src/Plugin.c 2012-12-30 01:33:11 +0000
@@ -105,12 +105,17 @@
hooks = (DCHooksPtr)core->query_interface(DCINTF_HOOKS, DCINTF_HOOKS_VER);
logging = (DCLogPtr)core->query_interface(DCINTF_LOGGING, DCINTF_LOGGING_VER);
- if(!init_cfg(core, PLUGIN_GUID) || !hooks || !logging) {
+ hub = (DCHub)core->core->query_interface(DCINTF_HUBS, DCINTF_HUBS_VER);
+ tagger = (DCTaggerPtr)core->query_interface(DCINTF_DCPP_TAGGER, DCINTF_DCPP_TAGGER_VER);
+ ui = (DCUIPtr)core->query_interface(DCINTF_DCPP_UI, DCINTF_DCPP_UI_VER);
+
+ if(!init_cfg(core, PLUGIN_GUID) || !hooks || !logging || !hub || !ui) {
return False;
}
if(install) {
/* This only executes when the plugin has been installed for the first time. */
+ set_cfg("SendSuffix", "<Plugins Test - " PLUGIN_NAME ">");
}
/* Register events. */
@@ -120,6 +125,7 @@
}
/* Start the plugin logic here. */
+ logging->log(PLUGIN_NAME " loaded...");
return True;
}
@@ -237,5 +243,5 @@
if (text != NULL && (text - tags->text) == 0)
tagger->add_tag(tags, 0, strlen(tags->text), "b", "");
- return False;
+ return True;
}
_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help : https://help.launchpad.net/ListHelp