File: context_8h-source.html

package info (click to toggle)
klone 1.1.1.dfsg1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,480 kB
  • ctags: 4,238
  • sloc: ansic: 16,288; makefile: 384; sh: 351
file content (75 lines) | stat: -rw-r--r-- 6,146 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>KLone: context.h Source File</title>
<link href="kl.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<div class="nav">
<a class="el" href="dir_000002.html">klone</a></div>
<h1>context.h</h1><a href="context_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment"> * Copyright (c) 2005, 2006 by KoanLogic s.r.l. &lt;http://www.koanlogic.com&gt;</span>
00003 <span class="comment"> * All rights reserved.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This file is part of KLone, and as such it is subject to the license stated</span>
00006 <span class="comment"> * in the LICENSE file which you have received as part of this distribution.</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> * $Id: context.h,v 1.9 2006/01/09 12:38:37 tat Exp $</span>
00009 <span class="comment"> */</span>
00010 
00011 <span class="preprocessor">#ifndef _KLONE_CONTEXT_H_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define _KLONE_CONTEXT_H_</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#include "klone_conf.h"</span>
00015 <span class="preprocessor">#include &lt;u/libu.h&gt;</span>
00016 <span class="preprocessor">#include &lt;<a class="code" href="klone_8h.html">klone/klone.h</a>&gt;</span>
00017 <span class="preprocessor">#include &lt;<a class="code" href="server_8h.html">klone/server.h</a>&gt;</span>
00018 <span class="preprocessor">#include &lt;<a class="code" href="backend_8h.html">klone/backend.h</a>&gt;</span>
00019 <span class="preprocessor">#include &lt;<a class="code" href="os_8h.html">klone/os.h</a>&gt;</span>
00020 
00021 <span class="preprocessor">#ifdef __cplusplus</span>
00022 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00023 <span class="preprocessor">#endif </span>
00024 <span class="preprocessor"></span>
00025 <span class="comment">/* global applicaton context */</span>
<a name="l00026"></a><a class="code" href="structcontext__s.html">00026</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structcontext__s.html">context_s</a>
00027 {
<a name="l00028"></a><a class="code" href="structcontext__s.html#o0">00028</a>     <a class="code" href="structserver__s.html">server_t</a> *server;   <span class="comment">/* server object                   */</span>
<a name="l00029"></a><a class="code" href="structcontext__s.html#o1">00029</a>     u_config_t *config; <span class="comment">/* server config object            */</span>
<a name="l00030"></a><a class="code" href="structcontext__s.html#o2">00030</a>     <a class="code" href="structbackend__s.html">backend_t</a> *backend; <span class="comment">/* the backend served by this child */</span>
<a name="l00031"></a><a class="code" href="structcontext__s.html#o3">00031</a>     <span class="keywordtype">char</span> *ext_config;   <span class="comment">/* additional external config file */</span>
<a name="l00032"></a><a class="code" href="structcontext__s.html#o4">00032</a>     <span class="keywordtype">int</span> debug;          <span class="comment">/* debugging on/off                */</span>
<a name="l00033"></a><a class="code" href="structcontext__s.html#o5">00033</a>     <span class="keywordtype">int</span> daemon;         <span class="comment">/* daemon/service mode on/off      */</span>
<a name="l00034"></a><a class="code" href="structcontext__s.html#o6">00034</a>     <span class="keywordtype">char</span> **arg;         <span class="comment">/* cmd line args array             */</span>
<a name="l00035"></a><a class="code" href="structcontext__s.html#o7">00035</a>     size_t narg;        <span class="comment">/* # of cmd line args              */</span>
<a name="l00036"></a><a class="code" href="structcontext__s.html#o8">00036</a>     <span class="keywordtype">int</span> pipc;           <span class="comment">/* parent IPC socket descriptor    */</span>
<a name="l00037"></a><a class="code" href="structcontext__s.html#o9">00037</a>     <span class="keywordtype">int</span> cgi;            <span class="comment">/* if we're in cgi mode            */</span>
00038 
00039 <span class="preprocessor">    #ifdef OS_WIN</span>
00040 <span class="preprocessor"></span>    SERVICE_STATUS_HANDLE hServiceStatus;
00041     SERVICE_STATUS status;     
00042     <span class="keyword">enum</span> { SERV_NOP, SERV_INSTALL, SERV_REMOVE } serv_op;        
00043                         <span class="comment">/* install/remove service bindings */</span>
00044 <span class="preprocessor">    #endif</span>
00045 <span class="preprocessor"></span>} context_t;
00046 
00047 <span class="comment">/* exported variable (see entry.c) */</span>
00048 <span class="keyword">extern</span> <a class="code" href="context_8h.html#a0">context_t</a> *ctx;
00049 
00050 <span class="preprocessor">#ifdef __cplusplus</span>
00051 <span class="preprocessor"></span>}
00052 <span class="preprocessor">#endif </span>
00053 <span class="preprocessor"></span>
00054 <span class="preprocessor">#endif</span>
</pre></div><hr>
<div> 
  <div style="text-align:left">
    <a href="http://www.koanlogic.com/kl/cont/gb/html/products.html">&larr;Products</a>
  </div>
  <div style="text-align:center;">
    &copy; 2005-2006 - <a href="http://www.koanlogic.com">KoanLogic S.r.l.</a> - All rights reserved
  </div>
</div>

</body>
</html>