summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders/src/miscutils.h
blob: e291a1d7923277e05e97235f9cf358c5d28d8d64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

void ReadSettingBlob(MCONTACT hContact, char *ModuleName,
					 char *SettingName, WORD *pSize, void **pbBlob);
void FreeSettingBlob(WORD pSize,void * pbBlob);

static void __inline SAFE_FREE(void** p)
{
	if (*p) {
		free(*p);
		*p = nullptr;
	}
}