00001 /***************************************************************************** 00002 * Copyright 2005 Daniel Ferullo * 00003 * * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); * 00005 * you may not use this file except in compliance with the License. * 00006 * You may obtain a copy of the License at * 00007 * * 00008 * http://www.apache.org/licenses/LICENSE-2.0 * 00009 * * 00010 * Unless required by applicable law or agreed to in writing, software * 00011 * distributed under the License is distributed on an "AS IS" BASIS, * 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 00013 * See the License for the specific language governing permissions and * 00014 * limitations under the License. * 00015 * * 00016 *****************************************************************************/ 00017 00018 /** 00019 * @file flag.h 00020 * @author Daniel Ferullo (ferullo@cmu.edu) 00021 * 00022 * @brief the flag type values. These are simple values that didn't seem to 00023 * fit into any other header. 00024 */ 00025 00026 #ifndef __FLAG_H__ 00027 #define __FLAG_H__ 00028 00029 /** @brief typedef for flag_t type */ 00030 typedef char flag_t; 00031 00032 /** @brief macro for the UNSET value */ 00033 #define FLAG_UNSET 0x00000000 00034 00035 /** @brief macro for the SET value */ 00036 #define FLAG_SET 0x00000001 00037 00038 /** @brief macro for the SUCCESS value */ 00039 #define FLAG_SUCCESS 0x00000002 00040 00041 /** @brief macro for the FAILED value */ 00042 #define FLAG_FAILED 0x00000004 00043 00044 #endif /* __FLAG_H__ */ 00045