summaryrefslogtreecommitdiff
path: root/shhhonidle/shhhonidle.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-22 14:21:10 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-22 14:21:10 +0000
commitce7ed8b5d95e707528bc44b2b0276559e4d21910 (patch)
tree17acc1f32ec2b00a9c69c66b55bd4a23a6b8136c /shhhonidle/shhhonidle.c
parent7bede2ef18542596b094c5e5ac2a97afbec30f82 (diff)
made backward compatible
added mingw project file fixed unused var warning git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@181 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'shhhonidle/shhhonidle.c')
-rw-r--r--shhhonidle/shhhonidle.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/shhhonidle/shhhonidle.c b/shhhonidle/shhhonidle.c
index 90f6235..2398fd3 100644
--- a/shhhonidle/shhhonidle.c
+++ b/shhhonidle/shhhonidle.c
@@ -13,11 +13,11 @@ PLUGINLINK *pluginLink;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
"Shhh on Idle",
- PLUGIN_MAKE_VERSION(0,0,2,0),
+ PLUGIN_MAKE_VERSION(0,1,0,0),
"Disable sounds (and optionally PopUps) when Miranda goes idle",
"Scott Ellis",
"mail@scottellis.com.au",
- "© 2005 Scott Ellis",
+ "© 2005-2007 Scott Ellis",
"http://www.scottellis.com.au/",
0, //not transient
0, //doesn't replace anything built-in
@@ -30,6 +30,12 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
return TRUE;
}
+__declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ pluginInfo.cbSize = sizeof(PLUGININFO);
+ return (PLUGININFO*)&pluginInfo;
+}
+
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
@@ -56,7 +62,7 @@ WORD saved_status;
#define ALARM_ON_TIME (1000 * 60 * 10) // alow sound for 10 mins when an alarm with sound notification is triggered
void EnableSounds(BOOL enable) {
- BOOL enabled = (BOOL)DBGetContactSettingByte(0, "Skin", "UseSound", 1);
+ //BOOL enabled = (BOOL)DBGetContactSettingByte(0, "Skin", "UseSound", 1);
DBWriteContactSettingByte(0, "Skin", "UseSound", enable ? 1 : 0);
}
@@ -136,4 +142,4 @@ int __declspec(dllexport) Unload(void)
{
UnhookEvent(hook_idle);
return 0;
-} \ No newline at end of file
+}