diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-10-07 18:59:19 +0000 |
commit | a5e65f02c7e37bed18fbca915e8040358d0f4fe7 (patch) | |
tree | ea9c8bfea65445c37181f77e4514cf7d98a1edcc /plugins/Non-IM Contact/src/services.cpp | |
parent | 419ee29ab88a47d9a87f96de040e0ce6921b83fe (diff) |
Non-IM Contact:
- Minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15516 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact/src/services.cpp')
-rw-r--r-- | plugins/Non-IM Contact/src/services.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/plugins/Non-IM Contact/src/services.cpp b/plugins/Non-IM Contact/src/services.cpp index e6fcfb3da3..46282ef90a 100644 --- a/plugins/Non-IM Contact/src/services.cpp +++ b/plugins/Non-IM Contact/src/services.cpp @@ -1,23 +1,9 @@ #include "stdafx.h"
//=======================================================
-// db_get_static
-//=======================================================
-
-int db_get_static(MCONTACT hContact, const char *szModule, const char *szSetting, char *value, size_t length)
-{
- ptrA str(db_get_sa(hContact, szModule, szSetting));
- if (str == NULL)
- return 0;
-
- strncpy_s(value, length, str, _TRUNCATE);
- return 1;
-}
-
-//=======================================================
// GetCaps
//=======================================================
-
+//
INT_PTR GetLCCaps(WPARAM wParam, LPARAM)
{
if (wParam == PFLAGNUM_1)
@@ -32,6 +18,7 @@ INT_PTR GetLCCaps(WPARAM wParam, LPARAM) //=======================================================
// GetName
//=======================================================
+//
INT_PTR GetLCName(WPARAM wParam, LPARAM lParam)
{
mir_strncpy((char*)lParam, MODNAME, wParam);
@@ -41,6 +28,7 @@ INT_PTR GetLCName(WPARAM wParam, LPARAM lParam) //=======================================================
// BPLoadIcon
//=======================================================
+//
INT_PTR LoadLCIcon(WPARAM wParam, LPARAM)
{
if (LOWORD(wParam) == PLI_PROTOCOL) {
@@ -62,7 +50,7 @@ INT_PTR LoadLCIcon(WPARAM wParam, LPARAM) //=======================================================
// SetFStatus
//=======================================================
-
+//
int SetLCStatus(WPARAM wParam, LPARAM)
{
int oldStatus = LCStatus;
@@ -113,7 +101,7 @@ int SetLCStatus(WPARAM wParam, LPARAM) //=======================================================
// GetStatus
//=======================================================
-
+//
INT_PTR GetLCStatus(WPARAM, LPARAM)
{
if ((LCStatus >= ID_STATUS_ONLINE) && (LCStatus <= ID_STATUS_OUTTOLUNCH))
|