forked from heimdal/MKShim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdummy.h
56 lines (46 loc) · 2.4 KB
/
dummy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef __dummy_h__
#define __dummy_h__
#include "heim.h"
#include <Heimdal/krb5_err.h>
#include <errno.h>
#include <stdlib.h>
#define dummy(func_name, ret_type, args, retval) \
ret_type func_name args \
{ \
mshim_log_function_missing( #func_name ); \
return (retval); \
}
#define dummyv(func_name, args) \
void func_name args \
{ \
mshim_log_function_missing( #func_name ); \
return; \
}
#define dummyk5(func_name, ret_type, args, retval) \
ret_type KRB5_CALLCONV mit_ ## func_name args \
{ \
mshim_log_function_missing( #func_name ); \
return (retval); \
}
#define dummyk5v(func_name, args) \
void KRB5_CALLCONV mit_ ## func_name args \
{ \
mshim_log_function_missing( #func_name ); \
return; \
}
#define quietdummy(func_name, ret_type, args, retval) \
ret_type func_name args \
{ \
return (retval); \
}
#define quietdummyk5(func_name, ret_type, args, retval) \
ret_type KRB5_CALLCONV mit_ ## func_name args \
{ \
return (retval); \
}
#define quietdummyk5v(func_name, args) \
void KRB5_CALLCONV mit_ ## func_name args \
{ \
return; \
}
#endif /* __dummy_h__ */