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>
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))
30 ContextualMenuInterfaceStruct
*virtual_table
;
31 struct git_data git_data
;
36 struct osx_menu_data
{
38 const AEDescList
*selection
;
43 extern void *create_instance(CFAllocatorRef a
, CFUUIDRef id
);
45 #endif /* FINDER_PLUGIN_H */