diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-22 00:55:51 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-22 00:57:16 +0300 |
commit | d28931ebdfc4ff561d05ab000aee4cbb5ac24d62 (patch) | |
tree | e5cfd83eb231df123a3d744106a4e9b521fba409 /src | |
parent | 921f870dd0feec3230a8634abbd85c556e9f3d22 (diff) |
OnEvent(EV_PROTO_ONCONTACTDELETED) => PROTO_INTERFACE::OnContactDeleted
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 3 | ||||
-rw-r--r-- | src/mir_app/src/proto_accs.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/proto_utils.cpp | 3 |
4 files changed, 8 insertions, 3 deletions
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index f8b2c787d4..ff52786b35 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -584,3 +584,4 @@ Proto_GetStatus @601 ?OnModulesLoaded@PROTO_INTERFACE@@UAEXXZ @607 NONAME
?OnShutdown@PROTO_INTERFACE@@UAEXXZ @608 NONAME
Contact_GetStatus @609
+?OnContactDeleted@PROTO_INTERFACE@@UAEXI@Z @610 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index fa42157694..a802c989ba 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -583,4 +583,5 @@ Proto_GetStatus @601 ?IsReadyToExit@PROTO_INTERFACE@@UEAA_NXZ @606 NONAME
?OnModulesLoaded@PROTO_INTERFACE@@UEAAXXZ @607 NONAME
?OnShutdown@PROTO_INTERFACE@@UEAAXXZ @608 NONAME
-Contact_GetStatus @609 NONAME
+Contact_GetStatus @609
+?OnContactDeleted@PROTO_INTERFACE@@UEAAXI@Z @610 NONAME
diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp index 5dbb088efd..8d54ace0de 100644 --- a/src/mir_app/src/proto_accs.cpp +++ b/src/mir_app/src/proto_accs.cpp @@ -190,12 +190,12 @@ void WriteDbAccounts() /////////////////////////////////////////////////////////////////////////////////////////
-static int OnContactDeleted(WPARAM hContact, LPARAM lParam)
+static int OnContactDeleted(WPARAM hContact, LPARAM)
{
if (hContact) {
PROTOACCOUNT *pa = Proto_GetAccount(hContact);
if (pa->IsEnabled() && pa->ppro)
- pa->ppro->OnEvent(EV_PROTO_ONCONTACTDELETED, hContact, lParam);
+ pa->ppro->OnContactDeleted(hContact);
}
return 0;
}
diff --git a/src/mir_app/src/proto_utils.cpp b/src/mir_app/src/proto_utils.cpp index a02ce87a74..759416c5e1 100644 --- a/src/mir_app/src/proto_utils.cpp +++ b/src/mir_app/src/proto_utils.cpp @@ -176,6 +176,9 @@ PROTO_INTERFACE::~PROTO_INTERFACE() WindowList_Destroy(m_hWindowList);
}
+void PROTO_INTERFACE::OnContactDeleted(MCONTACT)
+{}
+
void PROTO_INTERFACE::OnModulesLoaded()
{}
|