Reset inheritable flag of debug log file git_shell_ext_debug.txt
[git-cheetah/kirill.git] / finder / plugin.h
blobfd0ae173221e27da294a24678947e003ddcb48e6
1 /* plugin.h
3 * Implementation of a finder menu plugin for git-cheetah
5 * (c) by Heiko Voigt <hvoigt@hvoigt.net>
7 * inspired by an example from Brent Simmons
8 * brent@ranchero.com, http://macte.ch/kmyXM
12 #ifndef FINDER_PLUGIN_H
13 #define FINDER_PLUGIN_H
15 /* on Mac OS 10.4 there is a struct strbuf in Carbon */
16 #define strbuf mac_strbuf
17 #include <Carbon/Carbon.h>
18 #undef strbuf
19 #include <CoreFoundation/CFPlugInCOM.h>
20 #include "../common/menuengine.h"
22 /* UUID of this plugin:
23 * C46F90F0-A299-4AB4-857C-CC2B6D48EC25
25 #define myUUID (CFUUIDGetConstantUUIDWithBytes (NULL, 0xC4, 0x6F, 0x90, \
26 0xF0, 0xA2, 0x99, 0x4A, 0xB4, 0x85, 0x7C, 0xCC, \
27 0x2B, 0x6D, 0x48, 0xEC, 0x25))
29 struct plugin_data {
30 ContextualMenuInterfaceStruct *virtual_table;
31 struct git_data git_data;
32 CFUUIDRef id;
33 UInt32 num_ref;
36 struct osx_menu_data {
37 AEDescList *menu;
38 char *menu_name;
39 const AEDescList *selection;
40 OSStatus status;
43 extern void *create_instance(CFAllocatorRef a, CFUUIDRef id);
45 #endif /* FINDER_PLUGIN_H */