summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-17 21:57:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-17 21:57:16 +0000
commit6c4d35fca373a55252f4bce0bd0102f78eb67037 (patch)
tree14041df61249254d4d67a4d0cff411ad59b230e4 /plugins
parent5ab0462a05c80e52a629255353405d7e5c39e304 (diff)
ProtoServiceExists moved to mir_core
all another copies of it removed git-svn-id: http://svn.miranda-ng.org/main/trunk@5006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AVS/src/main.cpp13
-rw-r--r--plugins/AVS/src/options.cpp1
-rw-r--r--plugins/ListeningTo/src/commons.h2
-rw-r--r--plugins/ListeningTo/src/listeningto.cpp9
-rw-r--r--plugins/MyDetails/src/commons.h9
-rw-r--r--plugins/NewXstatusNotify/src/utils.cpp11
-rw-r--r--plugins/NewXstatusNotify/src/utils.h1
-rw-r--r--plugins/SkypeStatusChange/src/main.cpp10
-rw-r--r--plugins/TipperYM/src/subst.cpp8
-rw-r--r--plugins/TipperYM/src/subst.h1
-rw-r--r--plugins/helpers/gen_helpers.cpp8
-rw-r--r--plugins/helpers/gen_helpers.h1
12 files changed, 0 insertions, 74 deletions
diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp
index a0ee6d8b63..3f03247a9a 100644
--- a/plugins/AVS/src/main.cpp
+++ b/plugins/AVS/src/main.cpp
@@ -107,19 +107,8 @@ extern INT_PTR CALLBACK DlgProcAvatarOptions(HWND hwndDlg, UINT msg, WPARAM wPar
extern INT_PTR CALLBACK DlgProcAvatarUserInfo(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
extern INT_PTR CALLBACK DlgProcAvatarProtoInfo(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-
static int SetProtoMyAvatar(char *protocol, HBITMAP hBmp, TCHAR *originalFilename, int format, BOOL square, BOOL grow);
-// See if a protocol service exists
-int ProtoServiceExists(const char *szModule,const char *szService)
-{
- char str[MAXMODULELABELLENGTH * 2];
- strcpy(str,szModule);
- strcat(str,szService);
- return ServiceExists(str);
-}
-
-
/*
* output a notification message.
* may accept a hContact to include the contacts nickname in the notification message...
@@ -2467,8 +2456,6 @@ return = 1 (supported) or 0 (not supported)
*/
#define PS_ISAVATARFORMATSUPPORTED "/IsAvatarFormatSupported"
-
-
BOOL Proto_IsAvatarsEnabled(const char *proto)
{
if (ProtoServiceExists(proto, PS_GETAVATARCAPS))
diff --git a/plugins/AVS/src/options.cpp b/plugins/AVS/src/options.cpp
index f151f8c370..3120f43d60 100644
--- a/plugins/AVS/src/options.cpp
+++ b/plugins/AVS/src/options.cpp
@@ -43,7 +43,6 @@ extern void DeleteAvatarFromCache(HANDLE, BOOL);
extern HBITMAP LoadPNG(struct avatarCacheEntry *ace, char *szFilename);
extern HANDLE GetContactThatHaveTheAvatar(HANDLE hContact, int locked = -1);
-extern int ProtoServiceExists(const char *szModule,const char *szService);
extern BOOL Proto_IsAvatarsEnabled(const char *proto);
extern BOOL ScreenToClient(HWND hWnd, LPRECT lpRect);
diff --git a/plugins/ListeningTo/src/commons.h b/plugins/ListeningTo/src/commons.h
index 60225f3304..8ac3c7d235 100644
--- a/plugins/ListeningTo/src/commons.h
+++ b/plugins/ListeningTo/src/commons.h
@@ -84,8 +84,6 @@ extern BOOL loaded;
void RebuildMenu();
void StartTimer();
-int ProtoServiceExists(const char *szModule, const char *szService);
-
struct ProtocolInfo
{
diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp
index 2f9933ca82..94245af60e 100644
--- a/plugins/ListeningTo/src/listeningto.cpp
+++ b/plugins/ListeningTo/src/listeningto.cpp
@@ -144,15 +144,6 @@ extern "C" int __declspec(dllexport) Unload(void)
return 0;
}
-
-int ProtoServiceExists(const char *szModule, const char *szService)
-{
- char str[MAXMODULELABELLENGTH];
- strcpy(str,szModule);
- strcat(str,szService);
- return ServiceExists(str);
-}
-
void UpdateGlobalStatusMenus()
{
BOOL enabled = ListeningToEnabled(NULL, TRUE);
diff --git a/plugins/MyDetails/src/commons.h b/plugins/MyDetails/src/commons.h
index 0b841a2206..1a968b3327 100644
--- a/plugins/MyDetails/src/commons.h
+++ b/plugins/MyDetails/src/commons.h
@@ -73,15 +73,6 @@ extern bool g_bFramesExist;
#define PS_GETMYAVATARMAXSIZE "/GetMyAvatarMaxSize"
#define PS_GETMYNICKNAMEMAXLENGTH "/GetMyNicknameMaxLength"
-// See if a protocol service exists
-__inline static int ProtoServiceExists(const char *szModule,const char *szService)
-{
- char str[MAXMODULELABELLENGTH];
- strcpy(str,szModule);
- strcat(str,szService);
- return ServiceExists(str);
-}
-
// Helper
static __inline int DRAW_TEXT(HDC hDC, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat, const char *protocol)
{
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp
index 3e9d0f7f35..fddbc148f1 100644
--- a/plugins/NewXstatusNotify/src/utils.cpp
+++ b/plugins/NewXstatusNotify/src/utils.cpp
@@ -65,17 +65,6 @@ void ShowLog(TCHAR *file)
MessageBox(0, TranslateT("Can't open the log file!"), TranslateT("NewXstatusNotify"), MB_OK | MB_ICONERROR);
}
-int ProtoServiceExists(const char *szModule, const char *szService)
-{
- char str[MAXMODULELABELLENGTH];
- if (szModule == NULL || szService == NULL)
- return 0;
-
- strcpy(str,szModule);
- strcat(str,szService);
- return ServiceExists(str);
-}
-
BOOL StatusHasAwayMessage(char *szProto, int status)
{
if (szProto != NULL) {
diff --git a/plugins/NewXstatusNotify/src/utils.h b/plugins/NewXstatusNotify/src/utils.h
index 0c20662100..384b01c511 100644
--- a/plugins/NewXstatusNotify/src/utils.h
+++ b/plugins/NewXstatusNotify/src/utils.h
@@ -26,7 +26,6 @@ TCHAR *db2t(DBVARIANT *dbv);
int DBGetStringDefault(HANDLE hContact, const char *szModule, const char *szSetting, TCHAR *setting, int size, const TCHAR *defaultValue);
void HigherLower(int maxValue, int minValue);
void ShowLog(TCHAR *file);
-int ProtoServiceExists(const char *szModule, const char *szService);
BOOL StatusHasAwayMessage(char *szProto, int status);
void LogToFile(TCHAR *stzText);
diff --git a/plugins/SkypeStatusChange/src/main.cpp b/plugins/SkypeStatusChange/src/main.cpp
index 1157f4dd13..d94d0920f1 100644
--- a/plugins/SkypeStatusChange/src/main.cpp
+++ b/plugins/SkypeStatusChange/src/main.cpp
@@ -148,16 +148,6 @@ static void ThreadFunc(void*)
}
}
-bool ProtoServiceExists(const char *szModule,const char *szService)
-{
- char str[MAXMODULELABELLENGTH * 2];
- strncpy_s(str,szModule,strlen(szModule));
- strncat_s(str,szService,strlen(szService));
-
- return (ServiceExists(str) > 0);
-}
-
-
LRESULT APIENTRY SkypeAPI_WindowProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
{
LRESULT lReturnCode = 0;
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp
index 9740dbd1d2..e4bcb782cd 100644
--- a/plugins/TipperYM/src/subst.cpp
+++ b/plugins/TipperYM/src/subst.cpp
@@ -20,14 +20,6 @@ Boston, MA 02111-1307, USA.
#include "common.h"
-int ProtoServiceExists(const char *szModule, const char *szService)
-{
- char str[MAXMODULELABELLENGTH];
- strcpy(str,szModule);
- strcat(str,szService);
- return ServiceExists(str);
-}
-
bool DBGetContactSettingAsString(HANDLE hContact, const char *szModuleName, const char *szSettingName, TCHAR *buff, int bufflen)
{
DBVARIANT dbv;
diff --git a/plugins/TipperYM/src/subst.h b/plugins/TipperYM/src/subst.h
index fdc0b73320..d8cbf39d45 100644
--- a/plugins/TipperYM/src/subst.h
+++ b/plugins/TipperYM/src/subst.h
@@ -25,7 +25,6 @@ bool GetLabelText(HANDLE hContact, const DISPLAYITEM &di, TCHAR *buff, int iBuff
bool GetValueText(HANDLE hContact, const DISPLAYITEM &di, TCHAR *buff, int iBufflen);
void StripBBCodesInPlace(TCHAR *text);
-int ProtoServiceExists(const char *szModule, const char *szService);
// can be used with hContact == 0 to get uid for a given proto
bool UidName(char *szProto, TCHAR *buff, int bufflen);
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp
index c816dba8ea..39927fcece 100644
--- a/plugins/helpers/gen_helpers.cpp
+++ b/plugins/helpers/gen_helpers.cpp
@@ -19,14 +19,6 @@
#include "commonheaders.h"
#include "gen_helpers.h"
-int ProtoServiceExists(const char *szModule, const char *szService) {
-
- char str[MAXMODULELABELLENGTH];
- mir_snprintf(str, sizeof(str), "%s%s", szModule, szService);
-
- return ServiceExists(str);
-}
-
char *Hlp_GetProtocolNameA(const char *proto) {
char protoname[256];
diff --git a/plugins/helpers/gen_helpers.h b/plugins/helpers/gen_helpers.h
index 896b2638f4..29c1dafbf7 100644
--- a/plugins/helpers/gen_helpers.h
+++ b/plugins/helpers/gen_helpers.h
@@ -19,7 +19,6 @@
#ifndef __GEN_HELPERS_H
#define __GEN_HELPERS_H
-int ProtoServiceExists(const char *szModule, const char *szService);
char *Hlp_GetProtocolNameA(const char *proto);
TCHAR *Hlp_GetProtocolName(const char *proto);