Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

rcs_prnt.hh

Go to the documentation of this file.
00001 
00002 #ifndef RCS_PRNT_HH
00003 #define RCS_PRNT_HH
00004 
00005 #include "rcs_defs.hh"          /* _Windows, RCS_FAR, EXTERN_C_STD_HEADERS */
00006 
00007 #ifdef EXTERN_C_STD_HEADERS
00008 extern "C"
00009 {
00010 #endif
00011 
00012 #ifdef VXWORKS
00013 #include "vxWorks.h"
00014 #endif
00015 
00016 
00017 #ifdef USING_VARARGS
00018 #include <varargs.h>            /* va_list */
00019 #else
00020 #include <stdarg.h>             /* va_list */
00021 #endif
00022 
00023 #ifdef EXTERN_C_STD_HEADERS
00024 }
00025 #endif
00026 
00027 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00028 #include "linklist.hh"          /* RCS_LINKED_LIST */
00029 
00030 #ifdef USING_DECLSPEC
00031 extern RCS_EXPORT RCS_LINKED_LIST RCS_FAR *get_rcs_print_list ();
00032 #else
00033 extern RCS_LINKED_LIST RCS_FAR *RCS_EXPORT get_rcs_print_list ();
00034 #endif
00035 extern void RCS_EXPORT set_rcs_print_list_sizing_mode (int, LIST_SIZING_MODE);
00036 #endif
00037 
00038 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00039 extern "C"
00040 {
00041 #endif
00042 
00043   extern void RCS_EXPORT clean_print_list (void);
00044   extern void RCS_EXPORT output_print_list (int output_func (char *));
00045   extern int RCS_EXPORT count_characters_in_print_list (void);
00046   extern int RCS_EXPORT count_lines_in_print_list (void);
00047   extern void RCS_EXPORT convert_print_list_to_lines (void);
00048   extern void RCS_EXPORT update_lines_table (void);
00049   extern int RCS_EXPORT rcs_vprint (char RCS_FAR * _fmt, va_list va_args,
00050                                     int save_string);
00051   extern int RCS_EXPORT rcs_print (char RCS_FAR * _fmt, ...);
00052   extern int RCS_EXPORT rcs_print_debug (long, char RCS_FAR * _fmt, ...);
00053 #ifdef DO_NOT_USE_RCS_PRINT_ERROR_NEW
00054   extern int RCS_EXPORT rcs_print_error (char RCS_FAR * _fmt, ...);
00055 #else
00056   extern int RCS_EXPORT set_print_rcs_error_info (const char *file, int line);
00057   extern int RCS_EXPORT print_rcs_error_new (char RCS_FAR * _fmt, ...);
00058 #define rcs_print_error set_print_rcs_error_info( __FILE__, __LINE__); print_rcs_error_new
00059 #endif
00060 
00061   extern void RCS_EXPORT set_rcs_print_flag (long flags_to_set);
00062   extern void RCS_EXPORT clear_rcs_print_flag (long flags_to_set);
00063 
00064 #ifdef USING_DECLSPEC
00065   extern RCS_EXPORT char RCS_FAR *strip_control_characters (char RCS_FAR *
00066                                                             _dest,
00067                                                             char RCS_FAR *
00068                                                             _src);
00069 #else
00070   extern char RCS_FAR *RCS_EXPORT strip_control_characters (char RCS_FAR *
00071                                                             _dest,
00072                                                             char RCS_FAR *
00073                                                             _src);
00074 #endif
00075 
00076   extern int RCS_EXPORT separate_words (char RCS_FAR ** _dest, int _max,
00077                                         char RCS_FAR * _src);
00078 
00079   extern int RCS_EXPORT rcs_puts (char RCS_FAR *);
00080   extern int RCS_EXPORT rcs_fputs (char RCS_FAR *);
00081 
00082 #ifdef USING_DECLSPEC
00083   extern RCS_EXPORT char RCS_FAR **get_rcs_lines_table (void);
00084 #else
00085   extern char RCS_FAR **RCS_EXPORT get_rcs_lines_table (void);
00086 #endif
00087   extern int RCS_EXPORT get_rcs_print_list_size (void);
00088 
00089   typedef void (RCS_PASCAL RCS_FAR * RCS_PRINT_NOTIFY_FUNC_PTR) (void);
00090   extern void RCS_EXPORT set_rcs_print_notify (RCS_PRINT_NOTIFY_FUNC_PTR);
00091   extern int RCS_EXPORT set_rcs_print_file (char RCS_FAR * _file_name);
00092   extern void RCS_EXPORT close_rcs_printing (void);
00093 
00094 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00095 }
00096 #endif
00097 
00098 /* Print MODE flags. */
00099 #define PRINT_RCS_ERRORS                0x00000001      /* 1 */
00100 #define PRINT_NODE_CONSTRUCTORS         0x00000002      /* 2 */
00101 #define PRINT_NODE_DESTRUCTORS          0x00000004      /* 4 */
00102 #define PRINT_CMS_CONSTRUCTORS          0x00000008      /* 8 */
00103 #define PRINT_CMS_DESTRUCTORS           0x00000010      /* 16 */
00104 #define PRINT_NML_CONSTRUCTORS          0x00000020      /* 32 */
00105 #define PRINT_NML_DESTRUCTORS           0x00000040      /* 64 */
00106 
00107 #define PRINT_COMMANDS_RECIEVED         0x00000100      /* 256 */
00108 #define PRINT_COMMANDS_SENT             0x00000200      /* 512 */
00109 #define PRINT_STATUS_RECIEVED           0x00000400      /* 1024 */
00110 #define PRINT_STATUS_SENT               0x00000800      /* 2048 */
00111 #define PRINT_NODE_CYCLES               0x00001000      /* 4096 */
00112 #define PRINT_NODE_MISSED_CYCLES        0x00002000      /* 8192 */
00113 #define PRINT_NODE_CYCLE_TIMES          0x00004000      /* 16384 */
00114 #define PRINT_NODE_PROCESS_TIMES        0x00008000      /* 32768 */
00115 #define PRINT_NEW_WM                    0x00010000      /* 65536 */
00116 #define PRINT_NODE_ABORT                0x00020000      /* 131072 */
00117 #define PRINT_CMS_CONFIG_INFO           0x00040000      /* 262144 */
00118 #define PRINT_SOCKET_READ_SIZE          0x00080000      /* 524288 */
00119 #define PRINT_SOCKET_WRITE_SIZE         0x00100000      /* 1048576 */
00120 #define PRINT_INTERFACE_LOADING         0x00200000      /* 2097152 */
00121 #define PRINT_RPC_SERVER_CALL           0x00400000      /* 4194304 */
00122 #define PRINT_SEMAPHORE_ACTIVITY        0x00800000      /* 8388608 */
00123 #define PRINT_SOCKET_CONNECT            0x01000000      /* 16777216 */
00124 #define PRINT_SERVER_THREAD_ACTIVITY    0x02000000      // 33554432
00125 #define PRINT_SERVER_SUBSCRIPTION_ACTIVITY    0x04000000        // 67108864
00126 #define PRINT_SHARED_MEMORY_ACTIVITY    0x08000000
00127 #define PRINT_ALL_SOCKET_REQUESTS       0x10000000
00128 #define PRINT_EVERYTHING                0xFFFFFFFF      /* 4294967295 */
00129 
00130 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00131 enum RCS_PRINT_DESTINATION_TYPE
00132 {
00133 #else
00134 typedef enum
00135 {
00136 #endif
00137   RCS_PRINT_TO_STDOUT,
00138   RCS_PRINT_TO_STDERR,
00139   RCS_PRINT_TO_NULL,
00140   RCS_PRINT_TO_LIST,
00141   RCS_PRINT_TO_FILE,
00142   RCS_PRINT_TO_MESSAGE_BOX,     /* Only available for Windows */
00143   RCS_PRINT_TO_LOGGER           /* Only available for VXWORKS */
00144 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00145 };
00146 #else
00147 }
00148 RCS_PRINT_DESTINATION_TYPE;
00149 #endif
00150 
00151 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00152 extern "C"
00153 {
00154 #endif
00155 
00156   extern void RCS_EXPORT
00157     set_rcs_print_destination (RCS_PRINT_DESTINATION_TYPE);
00158   extern RCS_PRINT_DESTINATION_TYPE RCS_EXPORT
00159     get_rcs_print_destination (void);
00160 
00161   extern int RCS_EXPORT rcs_print_sys_error (int error_source,
00162                                              char RCS_FAR * _fmt, ...);
00163 
00164 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00165   enum RCS_PRINT_ERROR_SOURCE_TYPE
00166   {
00167 #else
00168   typedef enum
00169   {
00170 #endif
00171     ERRNO_ERROR_SOURCE = 1,
00172     GETLASTERROR_ERROR_SOURCE,
00173     WSAGETLASTERROR_ERROR_SOURCE
00174 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00175   };
00176 #else
00177   }
00178   RCS_PRINT_ERROR_SOURCE_TYPE;
00179 #endif
00180 
00181 
00182 #if defined(__CPLUSPLUS__) || defined(__cplusplus)
00183 };
00184 #endif
00185 
00186 extern int max_rcs_errors_to_print;
00187 extern int rcs_errors_printed;
00188 
00189 extern char last_error_bufs[4][100];
00190 extern int last_error_buf_filled;
00191 
00192 #endif
00193 
00194 
00195 
00196 
00197 

Generated on Sun Dec 2 15:56:51 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001