source: branches/gsoc08-framework/MacPorts_Framework/MPHelperCommon.h @ 39103

Last change on this file since 39103 was 39103, checked in by armahg@…, 9 years ago

Sitll working on IPC between framework and helpertool. Completed code on MPHelperTool side to retrieve file descriptor and write to file. bind() call on Framework side fails

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1/*
2 *  MPHelperCommon.h
3 *  MacPorts.Framework
4 *
5 *  Created by George  Armah on 7/31/08.
6 *  Copyright 2008 Lafayette College. All rights reserved.
7 *
8 */
9
10#ifndef _MPHELPERCOMMON_H
11#define _MPHELPERCOMMON_H
12
13#include "BetterAuthorizationSampleLib.h"
14#include <tcl.h>
15
16#define asl_NSLog(client, msg, level, format, ...) asl_log(client, msg, level, "%s", [[NSString stringWithFormat:format, ##__VA_ARGS__] UTF8String])
17#ifndef ASL_KEY_FACILITY
18#   define ASL_KEY_FACILITY "Facility"
19#endif
20
21
22//We need only one command for this Tool
23
24#define kMPHelperEvaluateTclCommand                                     "EvaluateTcl"
25
26        // authorization right name
27       
28        #define kMPHelperEvaluateTclRightsName                  "com.MacPorts.MacPortsFramework.EvaluateTcl"
29
30        // request  keys
31        // Should I put the NSError object in the request dictionary ?
32        // I'll try that for now and see how it goes
33       
34        //String to be Evlauted
35        #define kTclStringToBeEvaluated         "TclString"                                     //CFString
36
37        //Tcl MacPorts Package Initialization Path
38        #define kTclInterpreterInitPath         "TclInitPath"                           //CFString
39       
40        //Tcl interpInit.tcl Path
41        #define kInterpInitFilePath                     "InterpInitTclFilePath"         //CFString
42
43        //File Descriptor for server file
44        #define kServerFileDescriptor           "ServerFileDescriptor"          //CFNumber
45
46
47
48
49
50
51        //response keys
52        #define kTclStringEvaluationResult      "TclStringEvaluationResult"             //CFString
53
54        //Actually hold off doing errors for now
55        //NSError object we are passing
56        #define kNSError                                "NSError"                               //Am I allowed to pass in an NSError object?
57                                                                                                                                        //Lets make it a string for now
58
59        //Key for Testing Distributed Object implementation
60        #define kMPInterpreterDistObj           "MPInterpreterDistObj"
61
62extern const BASCommandSpec kMPHelperCommandSet[];
63
64#endif
Note: See TracBrowser for help on using the repository browser.