"Fossies" - the Fresh Open Source Software Archive 
Member "dbg-2.15.5/dbg_cmd.h" (20 Apr 2007, 2496 Bytes) of package /linux/www/old/dbg-2.15.5.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "dbg_cmd.h" see the
Fossies "Dox" file reference documentation.
1 /***************************************************************************
2 dbg_cmd.h - description
3 -------------------
4 begin : Sun Sep 24 2000
5 copyright : (C) 2001 by Dmitri Dmitrienko
6 : (C) 2002, 2007 NuSphere Corp.
7 www : http://dd.cron.ru
8 : http://www.nusphere.com/
9 author : written by Dmitri Dmitrienko
10 license : This source file is subject to version 3.0 of
11 the License, that is bundled with this package
12 in the file LICENSE, and is available at through
13 the world-wide-web at http://www.nusphere.com/dbg
14 ***************************************************************************/
15
16 #ifndef _DBG_CMD_H_
17 #define _DBG_CMD_H_
18
19 #include "php.h"
20 #include "php_dbg.h"
21 #include "dbg_net.h"
22
23 inline mod_item* dbg_mod_item_by_no(int mod_no TSRMLS_DC1(DBG));
24 inline mod_item* dbg_findmodule(const char *mod_name, int addifnotfound TSRMLS_DC1(DBG));
25
26 int dbg_start_session(SESSTYPE sesstype TSRMLS_DC3(DBG, E, S));
27 int dbg_stop_session(TSRMLS_D2(DBG, E));
28 inline int dbg_checkpausereq(TSRMLS_D1(DBG));
29
30 inline int dbg_send_std_action(int cmd, int hitcnt TSRMLS_DC2(DBG,E));
31 inline int dbg_send_log(char *log, int len, int type, const char *mod_name, const int line_no, int ext_info TSRMLS_DC2(DBG, E));
32 inline int dbg_send_error(char *message, int type, const char *mod_name, int line_no TSRMLS_DC2(DBG, E));
33
34
35 void dbg_flush_log(TSRMLS_D2(DBG,E));
36
37 int cmpll(void *element1, void *element2);
38
39 int chk_session_request(char *str, int len, char delimiter TSRMLS_DC1(DBG));
40 int parse_session_request(char *str, int len, char delimiter TSRMLS_DC1(DBG));
41
42 inline char *dbg_mod_name_by_no(int mod_no TSRMLS_DC1(DBG));
43
44 inline int dbg_mod_item_by_name(const char *mod_name, int addifnotfound TSRMLS_DC1(DBG));
45
46 #define DBG_FINDMODULE(mod_name) dbg_mod_item_by_name(mod_name, 0 TSRMLS_CC1(DBG))
47 #define DBG_FINDMODULE_ADD(mod_name) dbg_mod_item_by_name(mod_name, 1 TSRMLS_CC1(DBG))
48
49 #define INC_SCOPEID(v) v+2
50 #define DEC_SCOPEID(v) v-2
51
52 void add_session_cookie(TSRMLS_D2(DBG, S));
53
54 #define ADD_HDR(a) sapi_add_header(a, strlen(a), 1)
55
56 #define ESESS_NOREASON 0
57 #define ESESS_LOOKUP -1
58 #define ESESS_SOCK -2
59 #define ESESS_CONN -3
60
61 #if defined(ZEND_ENGINE_2)
62 #define EG_THIS EG(This)
63 #else
64 #define EG_THIS NULL
65 #endif
66
67
68 #endif