updater_darwin.h 498 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import <Cocoa/Cocoa.h>

// TODO make these macros so we can extract line numbers from the native code
void appLogInfo(NSString *msg);
void appLogDebug(NSString *msg);
void goLogInfo(const char *msg); 
void goLogDebug(const char *msg); 


AuthorizationRef getAuthorization(NSString *authorizationPrompt,
                                  NSString *right);

AuthorizationRef getAppInstallAuthorization();

const char* verifyExtractedBundle(char *path);
bool chownWithAuthorization(const char *user);