(file) Return to Messages.c CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Executor

 1 kumpf 1.2 /*
 2 martin 1.5 //%LICENSE////////////////////////////////////////////////////////////////
 3 kumpf  1.2 // 
 4 martin 1.5 // Licensed to The Open Group (TOG) under one or more contributor license
 5            // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 6            // this work for additional information regarding copyright ownership.
 7            // Each contributor licenses this file to you under the OpenPegasus Open
 8            // Source License; you may not use this file except in compliance with the
 9            // License.
10            // 
11            // Permission is hereby granted, free of charge, to any person obtaining a
12            // copy of this software and associated documentation files (the "Software"),
13            // to deal in the Software without restriction, including without limitation
14            // the rights to use, copy, modify, merge, publish, distribute, sublicense,
15            // and/or sell copies of the Software, and to permit persons to whom the
16            // Software is furnished to do so, subject to the following conditions:
17            // 
18            // The above copyright notice and this permission notice shall be included
19            // in all copies or substantial portions of the Software.
20            // 
21            // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22            // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
23            // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24            // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
25 martin 1.5 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26            // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27            // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28            // 
29            //////////////////////////////////////////////////////////////////////////
30            /*
31 kumpf  1.2 
32            #include "Messages.h"
33            
34            static const char* _messageStrings[] =
35            {
36                "Ping",
37                "OpenFile",
38                "StartProviderAgent",
39                "DaemonizeExecutor",
40                "RemoveFile",
41                "RenameFile",
42                "AuthenticatePassword",
43                "ValidateUser",
44                "ChallengeLocal",
45                "AuthenticateLocal",
46 kumpf  1.3     "UpdateLogLevel",
47 kumpf  1.2 };
48            
49            /*
50            **==============================================================================
51            **
52            ** MessageCodeToString()
53            **
54            **     Convert the code to a printable string.
55            **
56            **==============================================================================
57            */
58            
59            const char* MessageCodeToString(enum ExecutorMessageCode code)
60            {
61 kumpf  1.4     if ((int)code < 1 || code > EXECUTOR_UPDATE_LOG_LEVEL_MESSAGE)
62 kumpf  1.2         return "<unknown>";
63            
64                return _messageStrings[(int)code - 1];
65            }

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2