Kitxuuu commited on
Commit
8a956fc
·
verified ·
1 Parent(s): f99106c

Add files using upload-large-folder tool

Browse files
Files changed (20) hide show
  1. local-test-zookeeper-full-01/afc-zookeeper/tools/ci/test-connectivity.py +48 -0
  2. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/INSTALL +234 -0
  3. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/README +103 -0
  4. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/acinclude.m4 +327 -0
  5. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/aminclude.am +186 -0
  6. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/c-doc.Doxyfile +1252 -0
  7. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/configure.ac +275 -0
  8. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/proto.h +55 -0
  9. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/recordio.h +80 -0
  10. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/winconfig.h +15 -0
  11. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/zookeeper.h +0 -0
  12. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/zookeeper_version.h +31 -0
  13. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/pom.xml +196 -0
  14. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/CppAssertHelper.h +37 -0
  15. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/LibCSymTable.cc +87 -0
  16. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/PthreadMocks.cc +106 -0
  17. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/TestLogClientEnv.cc +59 -0
  18. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/TestReadOnlyClient.cc +171 -0
  19. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/Util.h +137 -0
  20. local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/Vector.h +37 -0
local-test-zookeeper-full-01/afc-zookeeper/tools/ci/test-connectivity.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+
3
+ # Licensed to the Apache Software Foundation (ASF) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The ASF licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+
19
+ import argparse
20
+ import subprocess
21
+
22
+ from pathlib import Path
23
+
24
+ class Server():
25
+ def __init__(self, binpath):
26
+ self.binpath = binpath
27
+ def __enter__(self):
28
+ subprocess.run([f'{self.binpath}', 'start'], check=True)
29
+ return self
30
+ def __exit__(self, type, value, traceback):
31
+ subprocess.run([f'{self.binpath}', 'stop'], check=True)
32
+
33
+ if __name__ == '__main__':
34
+ parser = argparse.ArgumentParser()
35
+ parser.add_argument('--server', help="basepath to zk server", required=True)
36
+ parser.add_argument('--client', help="basepath to zk client", required=True)
37
+
38
+ args = parser.parse_args()
39
+
40
+ server_basepath = Path(args.server).absolute()
41
+ server_binpath = server_basepath / "bin" / "zkServer.sh"
42
+ assert server_binpath.exists(), f"server binpath not exist: {server_binpath}"
43
+ client_basepath = Path(args.client).absolute()
44
+ client_binpath = client_basepath / "bin" / "zkCli.sh"
45
+ assert client_binpath.exists(), f"client binpath not exist: {client_binpath}"
46
+
47
+ with Server(server_binpath):
48
+ subprocess.run([f'{client_binpath}', 'sync', '/'], check=True)
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/INSTALL ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Installation Instructions
2
+ *************************
3
+
4
+ Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5
+ 2006 Free Software Foundation, Inc.
6
+
7
+ This file is free documentation; the Free Software Foundation gives
8
+ unlimited permission to copy, distribute and modify it.
9
+
10
+ Basic Installation
11
+ ==================
12
+
13
+ Briefly, the shell commands `./configure; make; make install' should
14
+ configure, build, and install this package. The following
15
+ more-detailed instructions are generic; see the `README' file for
16
+ instructions specific to this package.
17
+
18
+ The `configure' shell script attempts to guess correct values for
19
+ various system-dependent variables used during compilation. It uses
20
+ those values to create a `Makefile' in each directory of the package.
21
+ It may also create one or more `.h' files containing system-dependent
22
+ definitions. Finally, it creates a shell script `config.status' that
23
+ you can run in the future to recreate the current configuration, and a
24
+ file `config.log' containing compiler output (useful mainly for
25
+ debugging `configure').
26
+
27
+ It can also use an optional file (typically called `config.cache'
28
+ and enabled with `--cache-file=config.cache' or simply `-C') that saves
29
+ the results of its tests to speed up reconfiguring. Caching is
30
+ disabled by default to prevent problems with accidental use of stale
31
+ cache files.
32
+
33
+ If you need to do unusual things to compile the package, please try
34
+ to figure out how `configure' could check whether to do them, and mail
35
+ diffs or instructions to the address given in the `README' so they can
36
+ be considered for the next release. If you are using the cache, and at
37
+ some point `config.cache' contains results you don't want to keep, you
38
+ may remove or edit it.
39
+
40
+ The file `configure.ac' (or `configure.in') is used to create
41
+ `configure' by a program called `autoconf'. You need `configure.ac' if
42
+ you want to change it or regenerate `configure' using a newer version
43
+ of `autoconf'.
44
+
45
+ The simplest way to compile this package is:
46
+
47
+ 1. `cd' to the directory containing the package's source code and type
48
+ `./configure' to configure the package for your system.
49
+
50
+ Running `configure' might take a while. While running, it prints
51
+ some messages telling which features it is checking for.
52
+
53
+ 2. Type `make' to compile the package.
54
+
55
+ 3. Optionally, type `make check' to run any self-tests that come with
56
+ the package.
57
+
58
+ 4. Type `make install' to install the programs and any data files and
59
+ documentation.
60
+
61
+ 5. You can remove the program binaries and object files from the
62
+ source code directory by typing `make clean'. To also remove the
63
+ files that `configure' created (so you can compile the package for
64
+ a different kind of computer), type `make distclean'. There is
65
+ also a `make maintainer-clean' target, but that is intended mainly
66
+ for the package's developers. If you use it, you may have to get
67
+ all sorts of other programs in order to regenerate files that came
68
+ with the distribution.
69
+
70
+ Compilers and Options
71
+ =====================
72
+
73
+ Some systems require unusual options for compilation or linking that the
74
+ `configure' script does not know about. Run `./configure --help' for
75
+ details on some of the pertinent environment variables.
76
+
77
+ You can give `configure' initial values for configuration parameters
78
+ by setting variables in the command line or in the environment. Here
79
+ is an example:
80
+
81
+ ./configure CC=c99 CFLAGS=-g LIBS=-lposix
82
+
83
+ *Note Defining Variables::, for more details.
84
+
85
+ Compiling For Multiple Architectures
86
+ ====================================
87
+
88
+ You can compile the package for more than one kind of computer at the
89
+ same time, by placing the object files for each architecture in their
90
+ own directory. To do this, you can use GNU `make'. `cd' to the
91
+ directory where you want the object files and executables to go and run
92
+ the `configure' script. `configure' automatically checks for the
93
+ source code in the directory that `configure' is in and in `..'.
94
+
95
+ With a non-GNU `make', it is safer to compile the package for one
96
+ architecture at a time in the source code directory. After you have
97
+ installed the package for one architecture, use `make distclean' before
98
+ reconfiguring for another architecture.
99
+
100
+ Installation Names
101
+ ==================
102
+
103
+ By default, `make install' installs the package's commands under
104
+ `/usr/local/bin', include files under `/usr/local/include', etc. You
105
+ can specify an installation prefix other than `/usr/local' by giving
106
+ `configure' the option `--prefix=PREFIX'.
107
+
108
+ You can specify separate installation prefixes for
109
+ architecture-specific files and architecture-independent files. If you
110
+ pass the option `--exec-prefix=PREFIX' to `configure', the package uses
111
+ PREFIX as the prefix for installing programs and libraries.
112
+ Documentation and other data files still use the regular prefix.
113
+
114
+ In addition, if you use an unusual directory layout you can give
115
+ options like `--bindir=DIR' to specify different values for particular
116
+ kinds of files. Run `configure --help' for a list of the directories
117
+ you can set and what kinds of files go in them.
118
+
119
+ If the package supports it, you can cause programs to be installed
120
+ with an extra prefix or suffix on their names by giving `configure' the
121
+ option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
122
+
123
+ Optional Features
124
+ =================
125
+
126
+ Some packages pay attention to `--enable-FEATURE' options to
127
+ `configure', where FEATURE indicates an optional part of the package.
128
+ They may also pay attention to `--with-PACKAGE' options, where PACKAGE
129
+ is something like `gnu-as' or `x' (for the X Window System). The
130
+ `README' should mention any `--enable-' and `--with-' options that the
131
+ package recognizes.
132
+
133
+ For packages that use the X Window System, `configure' can usually
134
+ find the X include and library files automatically, but if it doesn't,
135
+ you can use the `configure' options `--x-includes=DIR' and
136
+ `--x-libraries=DIR' to specify their locations.
137
+
138
+ Specifying the System Type
139
+ ==========================
140
+
141
+ There may be some features `configure' cannot figure out automatically,
142
+ but needs to determine by the type of machine the package will run on.
143
+ Usually, assuming the package is built to be run on the _same_
144
+ architectures, `configure' can figure that out, but if it prints a
145
+ message saying it cannot guess the machine type, give it the
146
+ `--build=TYPE' option. TYPE can either be a short name for the system
147
+ type, such as `sun4', or a canonical name which has the form:
148
+
149
+ CPU-COMPANY-SYSTEM
150
+
151
+ where SYSTEM can have one of these forms:
152
+
153
+ OS KERNEL-OS
154
+
155
+ See the file `config.sub' for the possible values of each field. If
156
+ `config.sub' isn't included in this package, then this package doesn't
157
+ need to know the machine type.
158
+
159
+ If you are _building_ compiler tools for cross-compiling, you should
160
+ use the option `--target=TYPE' to select the type of system they will
161
+ produce code for.
162
+
163
+ If you want to _use_ a cross compiler, that generates code for a
164
+ platform different from the build platform, you should specify the
165
+ "host" platform (i.e., that on which the generated programs will
166
+ eventually be run) with `--host=TYPE'.
167
+
168
+ Sharing Defaults
169
+ ================
170
+
171
+ If you want to set default values for `configure' scripts to share, you
172
+ can create a site shell script called `config.site' that gives default
173
+ values for variables like `CC', `cache_file', and `prefix'.
174
+ `configure' looks for `PREFIX/share/config.site' if it exists, then
175
+ `PREFIX/etc/config.site' if it exists. Or, you can set the
176
+ `CONFIG_SITE' environment variable to the location of the site script.
177
+ A warning: not all `configure' scripts look for a site script.
178
+
179
+ Defining Variables
180
+ ==================
181
+
182
+ Variables not defined in a site shell script can be set in the
183
+ environment passed to `configure'. However, some packages may run
184
+ configure again during the build, and the customized values of these
185
+ variables may be lost. In order to avoid this problem, you should set
186
+ them in the `configure' command line, using `VAR=value'. For example:
187
+
188
+ ./configure CC=/usr/local2/bin/gcc
189
+
190
+ causes the specified `gcc' to be used as the C compiler (unless it is
191
+ overridden in the site shell script).
192
+
193
+ Unfortunately, this technique does not work for `CONFIG_SHELL' due to
194
+ an Autoconf bug. Until the bug is fixed you can use this workaround:
195
+
196
+ CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
197
+
198
+ `configure' Invocation
199
+ ======================
200
+
201
+ `configure' recognizes the following options to control how it operates.
202
+
203
+ `--help'
204
+ `-h'
205
+ Print a summary of the options to `configure', and exit.
206
+
207
+ `--version'
208
+ `-V'
209
+ Print the version of Autoconf used to generate the `configure'
210
+ script, and exit.
211
+
212
+ `--cache-file=FILE'
213
+ Enable the cache: use and save the results of the tests in FILE,
214
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
215
+ disable caching.
216
+
217
+ `--config-cache'
218
+ `-C'
219
+ Alias for `--cache-file=config.cache'.
220
+
221
+ `--quiet'
222
+ `--silent'
223
+ `-q'
224
+ Do not print messages saying which checks are being made. To
225
+ suppress all normal output, redirect it to `/dev/null' (any error
226
+ messages will still be shown).
227
+
228
+ `--srcdir=DIR'
229
+ Look for the package's source code in directory DIR. Usually
230
+ `configure' can determine that directory automatically.
231
+
232
+ `configure' also accepts some other, not widely useful, options. Run
233
+ `configure --help' for more details.
234
+
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/README ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Zookeeper C client library
2
+
3
+
4
+ This package provides a C client interface to Zookeeper server.
5
+
6
+ For the latest information about ZooKeeper, please visit our website at:
7
+ http://zookeeper.apache.org/
8
+ and our wiki, at:
9
+ https://cwiki.apache.org/confluence/display/ZOOKEEPER
10
+
11
+ Full documentation for this release can also be found in ../../docs/index.html
12
+
13
+
14
+ OVERVIEW
15
+
16
+ The client supports two types of APIs -- synchronous and asynchronous.
17
+
18
+ Asynchronous API provides non-blocking operations with completion callbacks and
19
+ relies on the application to implement event multiplexing on its behalf.
20
+
21
+ On the other hand, Synchronous API provides a blocking flavor of
22
+ zookeeper operations and runs its own event loop in a separate thread.
23
+
24
+ Sync and Async APIs can be mixed and matched within the same application.
25
+
26
+ The package includes two shared libraries: zookeeper_st and
27
+ zookeeper_mt. The former only provides the Async API and is not
28
+ thread-safe. The only reason this library exists is to support the
29
+ platforms were pthread library is not available or unstable
30
+ (i.e. FreeBSD 4.x). In all other cases the application developers are
31
+ advised to link against zookeeper_mt as it includes support for both
32
+ Sync and Async API.
33
+
34
+
35
+ INSTALLATION
36
+
37
+ Please refer to the "Installation" item under "C Binding" section in file
38
+ ".../trunk/zookeeper-docs/src/main/resources/markdown/zookeeperProgrammers.md"
39
+
40
+ EXAMPLE/SAMPLE C CLIENT SHELL
41
+
42
+ NOTE: the ZooKeeper C client shell (cli_st and cli_mt) is meant as a
43
+ example/sample of ZooKeeper C client API usage. It is not a full
44
+ fledged client and not meant for production usage - see the Java
45
+ client shell for a fully featured shell.
46
+
47
+ You can test your client by running a zookeeper server (see
48
+ instructions on the project wiki page on how to run it) and connecting
49
+ to it using the zookeeper shell application cli that is built as part
50
+ of the installation procedure.
51
+
52
+ cli_mt (multithreaded, built against zookeeper_mt library) is shown in
53
+ this example, but you could also use cli_st (singlethreaded, built
54
+ against zookeeper_st library):
55
+
56
+ $ cli_mt zookeeper_host:9876
57
+
58
+ To start a client with read-only mode enabled, use the -r flag:
59
+
60
+ $ cli_mt -r zookeeper_host:9876
61
+
62
+ This is a client application that gives you a shell for executing
63
+ simple zookeeper commands. Once successfully started and connected to
64
+ the server it displays a shell prompt.
65
+
66
+ You can now enter zookeeper commands. For example, to create a node:
67
+
68
+ > create /my_new_node
69
+
70
+ To verify that the node's been created:
71
+
72
+ > ls /
73
+
74
+ You should see a list of nodes who are the children of the root node "/".
75
+
76
+ Here's a list of command supported by the cli shell:
77
+
78
+ ls <path> -- list children of a znode identified by <path>. The
79
+ command set a children watch on the znode.
80
+ get <path> -- get the value of a znode at <path>
81
+ set <path> <value> -- set the value of a znode at <path> to <value>
82
+ create [+e|+s] <path> -- create a znode as a child of znode <path>;
83
+ use +e option to create an ephemeral znode,
84
+ use +s option to create a znode with a sequence number
85
+ appended to the name. The operation will fail if
86
+ the parent znode (the one identified by <path>) doesn't
87
+ exist.
88
+ delete <path> -- delete the znode at <path>. The command will fail if the znode
89
+ has children.
90
+ sync <path> -- make sure all pending updates have been applied to znode at <path>
91
+ exists <path> -- returns a result code indicating whether the znode at <path>
92
+ exists. The command also sets a znode watch.
93
+ myid -- prints out the current zookeeper session id.
94
+ quit -- exit the shell.
95
+
96
+ In order to be able to use the zookeeper API in your application you have to
97
+ 1) remember to include the zookeeper header
98
+ #include <zookeeper/zookeeper.h>
99
+ 2) use -DTHREADED compiler option to enable Sync API; in this case you should
100
+ be linking your code against zookeeper_mt library
101
+
102
+ Please take a look at cli.c to understand how to use the two API types.
103
+ (TODO: some kind of short tutorial would be helpful, I guess)
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/acinclude.m4 ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file is part of Autoconf. -*- Autoconf -*-
2
+
3
+ # Copyright (C) 2004 Oren Ben-Kiki
4
+ # This file is distributed under the same terms as the Autoconf macro files.
5
+
6
+ # Generate automatic documentation using Doxygen. Works in concert with the
7
+ # aminclude.m4 file and a compatible doxygen configuration file. Defines the
8
+ # following public macros:
9
+ #
10
+ # DX_???_FEATURE(ON|OFF) - control the default setting of a Doxygen feature.
11
+ # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
12
+ # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
13
+ # for generating a separate .chi file by the .chm file, and 'MAN', 'RTF',
14
+ # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
15
+ # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
16
+ # paper size.
17
+ #
18
+ # By default, HTML, PDF and PS documentation is generated as this seems to be
19
+ # the most popular and portable combination. MAN pages created by Doxygen are
20
+ # usually problematic, though by picking an appropriate subset and doing some
21
+ # massaging they might be better than nothing. CHM and RTF are specific for MS
22
+ # (note that you can't generate both HTML and CHM at the same time). The XML is
23
+ # rather useless unless you apply specialized post-processing to it.
24
+ #
25
+ # The macro mainly controls the default state of the feature. The use can
26
+ # override the default by specifying --enable or --disable. The macros ensure
27
+ # that contradictory flags are not given (e.g., --enable-doxygen-html and
28
+ # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
29
+ # Finally, each feature will be automatically disabled (with a warning) if the
30
+ # required programs are missing.
31
+ #
32
+ # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
33
+ # the following parameters: a one-word name for the project for use as a
34
+ # filename base etc., an optional configuration file name (the default is
35
+ # 'Doxyfile', the same as Doxygen's default), and an optional output directory
36
+ # name (the default is 'doxygen-doc').
37
+
38
+ ## ----------##
39
+ ## Defaults. ##
40
+ ## ----------##
41
+
42
+ DX_ENV=""
43
+ AC_DEFUN([DX_FEATURE_doc], ON)
44
+ AC_DEFUN([DX_FEATURE_dot], ON)
45
+ AC_DEFUN([DX_FEATURE_man], OFF)
46
+ AC_DEFUN([DX_FEATURE_html], ON)
47
+ AC_DEFUN([DX_FEATURE_chm], OFF)
48
+ AC_DEFUN([DX_FEATURE_chi], OFF)
49
+ AC_DEFUN([DX_FEATURE_rtf], OFF)
50
+ AC_DEFUN([DX_FEATURE_xml], OFF)
51
+ AC_DEFUN([DX_FEATURE_pdf], ON)
52
+ AC_DEFUN([DX_FEATURE_ps], ON)
53
+
54
+ ## --------------- ##
55
+ ## Private macros. ##
56
+ ## --------------- ##
57
+
58
+ # DX_ENV_APPEND(VARIABLE, VALUE)
59
+ # ------------------------------
60
+ # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
61
+ AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
62
+
63
+ # DX_DIRNAME_EXPR
64
+ # ---------------
65
+ # Expand into a shell expression prints the directory part of a path.
66
+ AC_DEFUN([DX_DIRNAME_EXPR],
67
+ [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
68
+
69
+ # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
70
+ # -------------------------------------
71
+ # Expands according to the M4 (static) status of the feature.
72
+ AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
73
+
74
+ # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
75
+ # ----------------------------------
76
+ # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
77
+ AC_DEFUN([DX_REQUIRE_PROG], [
78
+ AC_PATH_TOOL([$1], [$2])
79
+ if test "$DX_FLAG_$[DX_CURRENT_FEATURE$$1]" = 1; then
80
+ AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
81
+ AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0)
82
+ fi
83
+ ])
84
+
85
+ # DX_TEST_FEATURE(FEATURE)
86
+ # ------------------------
87
+ # Expand to a shell expression testing whether the feature is active.
88
+ AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
89
+
90
+ # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
91
+ # -------------------------------------------------
92
+ # Verify that a required features has the right state before trying to turn on
93
+ # the DX_CURRENT_FEATURE.
94
+ AC_DEFUN([DX_CHECK_DEPEND], [
95
+ test "$DX_FLAG_$1" = "$2" \
96
+ || AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
97
+ requires, contradicts) doxygen-DX_CURRENT_FEATURE])
98
+ ])
99
+
100
+ # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
101
+ # ----------------------------------------------------------
102
+ # Turn off the DX_CURRENT_FEATURE if the required feature is off.
103
+ AC_DEFUN([DX_CLEAR_DEPEND], [
104
+ test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0)
105
+ ])
106
+
107
+ # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
108
+ # CHECK_DEPEND, CLEAR_DEPEND,
109
+ # REQUIRE, DO-IF-ON, DO-IF-OFF)
110
+ # --------------------------------------------
111
+ # Parse the command-line option controlling a feature. CHECK_DEPEND is called
112
+ # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
113
+ # otherwise CLEAR_DEPEND is called to turn off the default state if a required
114
+ # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
115
+ # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
116
+ # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
117
+ AC_DEFUN([DX_ARG_ABLE], [
118
+ AC_DEFUN([DX_CURRENT_FEATURE], [$1])
119
+ AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
120
+ AC_ARG_ENABLE(doxygen-$1,
121
+ [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
122
+ [--enable-doxygen-$1]),
123
+ DX_IF_FEATURE([$1], [don't $2], [$2]))],
124
+ [
125
+ case "$enableval" in
126
+ #(
127
+ y|Y|yes|Yes|YES)
128
+ AC_SUBST([DX_FLAG_$1], 1)
129
+ $3
130
+ ;; #(
131
+ n|N|no|No|NO)
132
+ AC_SUBST([DX_FLAG_$1], 0)
133
+ ;; #(
134
+ *)
135
+ AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
136
+ ;;
137
+ esac
138
+ ], [
139
+ AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
140
+ $4
141
+ ])
142
+ if DX_TEST_FEATURE([$1]); then
143
+ $5
144
+ :
145
+ fi
146
+ if DX_TEST_FEATURE([$1]); then
147
+ AM_CONDITIONAL(DX_COND_$1, :)
148
+ $6
149
+ :
150
+ else
151
+ AM_CONDITIONAL(DX_COND_$1, false)
152
+ $7
153
+ :
154
+ fi
155
+ ])
156
+
157
+ ## -------------- ##
158
+ ## Public macros. ##
159
+ ## -------------- ##
160
+
161
+ # DX_XXX_FEATURE(DEFAULT_STATE)
162
+ # -----------------------------
163
+ AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
164
+ AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
165
+ AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
166
+ AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
167
+ AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
168
+ AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
169
+ AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
170
+ AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
171
+ AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
172
+ AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
173
+
174
+ # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
175
+ # ---------------------------------------------------------
176
+ # PROJECT also serves as the base name for the documentation files.
177
+ # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
178
+ AC_DEFUN([DX_INIT_DOXYGEN], [
179
+
180
+ # Files:
181
+ AC_SUBST([DX_PROJECT], [$1])
182
+ AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
183
+ AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
184
+
185
+ # Environment variables used inside doxygen.cfg:
186
+ DX_ENV_APPEND(SRCDIR, $srcdir)
187
+ DX_ENV_APPEND(PROJECT, $DX_PROJECT)
188
+ DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
189
+ DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
190
+
191
+ # Doxygen itself:
192
+ DX_ARG_ABLE(doc, [generate any doxygen documentation],
193
+ [],
194
+ [],
195
+ [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
196
+ DX_REQUIRE_PROG([DX_PERL], perl)],
197
+ [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
198
+
199
+ # Dot for graphics:
200
+ DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
201
+ [DX_CHECK_DEPEND(doc, 1)],
202
+ [DX_CLEAR_DEPEND(doc, 1)],
203
+ [DX_REQUIRE_PROG([DX_DOT], dot)],
204
+ [DX_ENV_APPEND(HAVE_DOT, YES)
205
+ DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
206
+ [DX_ENV_APPEND(HAVE_DOT, NO)])
207
+
208
+ # Man pages generation:
209
+ DX_ARG_ABLE(man, [generate doxygen manual pages],
210
+ [DX_CHECK_DEPEND(doc, 1)],
211
+ [DX_CLEAR_DEPEND(doc, 1)],
212
+ [],
213
+ [DX_ENV_APPEND(GENERATE_MAN, YES)],
214
+ [DX_ENV_APPEND(GENERATE_MAN, NO)])
215
+
216
+ # RTF file generation:
217
+ DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
218
+ [DX_CHECK_DEPEND(doc, 1)],
219
+ [DX_CLEAR_DEPEND(doc, 1)],
220
+ [],
221
+ [DX_ENV_APPEND(GENERATE_RTF, YES)],
222
+ [DX_ENV_APPEND(GENERATE_RTF, NO)])
223
+
224
+ # XML file generation:
225
+ DX_ARG_ABLE(xml, [generate doxygen XML documentation],
226
+ [DX_CHECK_DEPEND(doc, 1)],
227
+ [DX_CLEAR_DEPEND(doc, 1)],
228
+ [],
229
+ [DX_ENV_APPEND(GENERATE_XML, YES)],
230
+ [DX_ENV_APPEND(GENERATE_XML, NO)])
231
+
232
+ # (Compressed) HTML help generation:
233
+ DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
234
+ [DX_CHECK_DEPEND(doc, 1)],
235
+ [DX_CLEAR_DEPEND(doc, 1)],
236
+ [DX_REQUIRE_PROG([DX_HHC], hhc)],
237
+ [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
238
+ DX_ENV_APPEND(GENERATE_HTML, YES)
239
+ DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
240
+ [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
241
+
242
+ # Separate CHI file generation.
243
+ DX_ARG_ABLE(chi, [generate doxygen separate compressed HTML help index file],
244
+ [DX_CHECK_DEPEND(chm, 1)],
245
+ [DX_CLEAR_DEPEND(chm, 1)],
246
+ [],
247
+ [DX_ENV_APPEND(GENERATE_CHI, YES)],
248
+ [DX_ENV_APPEND(GENERATE_CHI, NO)])
249
+
250
+ # Plain HTML pages generation:
251
+ DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
252
+ [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
253
+ [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
254
+ [],
255
+ [DX_ENV_APPEND(GENERATE_HTML, YES)],
256
+ [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
257
+
258
+ # PostScript file generation:
259
+ DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
260
+ [DX_CHECK_DEPEND(doc, 1)],
261
+ [DX_CLEAR_DEPEND(doc, 1)],
262
+ [DX_REQUIRE_PROG([DX_LATEX], latex)
263
+ DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
264
+ DX_REQUIRE_PROG([DX_DVIPS], dvips)
265
+ DX_REQUIRE_PROG([DX_EGREP], egrep)])
266
+
267
+ # PDF file generation:
268
+ DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
269
+ [DX_CHECK_DEPEND(doc, 1)],
270
+ [DX_CLEAR_DEPEND(doc, 1)],
271
+ [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
272
+ DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
273
+ DX_REQUIRE_PROG([DX_EGREP], egrep)])
274
+
275
+ # LaTeX generation for PS and/or PDF:
276
+ if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
277
+ AM_CONDITIONAL(DX_COND_latex, :)
278
+ DX_ENV_APPEND(GENERATE_LATEX, YES)
279
+ else
280
+ AM_CONDITIONAL(DX_COND_latex, false)
281
+ DX_ENV_APPEND(GENERATE_LATEX, NO)
282
+ fi
283
+
284
+ # Paper size for PS and/or PDF:
285
+ AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
286
+ [a4wide (default), a4, letter, legal or executive])
287
+ case "$DOXYGEN_PAPER_SIZE" in
288
+ #(
289
+ "")
290
+ AC_SUBST(DOXYGEN_PAPER_SIZE, "")
291
+ ;; #(
292
+ a4wide|a4|letter|legal|executive)
293
+ DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
294
+ ;; #(
295
+ *)
296
+ AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
297
+ ;;
298
+ esac
299
+
300
+ #For debugging:
301
+ #echo DX_FLAG_doc=$DX_FLAG_doc
302
+ #echo DX_FLAG_dot=$DX_FLAG_dot
303
+ #echo DX_FLAG_man=$DX_FLAG_man
304
+ #echo DX_FLAG_html=$DX_FLAG_html
305
+ #echo DX_FLAG_chm=$DX_FLAG_chm
306
+ #echo DX_FLAG_chi=$DX_FLAG_chi
307
+ #echo DX_FLAG_rtf=$DX_FLAG_rtf
308
+ #echo DX_FLAG_xml=$DX_FLAG_xml
309
+ #echo DX_FLAG_pdf=$DX_FLAG_pdf
310
+ #echo DX_FLAG_ps=$DX_FLAG_ps
311
+ #echo DX_ENV=$DX_ENV
312
+ ])
313
+
314
+ # CHECK_CPPUNIT
315
+ # ------------------
316
+ # Check for cppunit presence.
317
+ AC_DEFUN([CHECK_CPPUNIT], [
318
+ ifdef(
319
+ [AM_PATH_CPPUNIT],
320
+ [AM_PATH_CPPUNIT($1)],
321
+ [ifdef(
322
+ [PKG_CHECK_MODULES],
323
+ [PKG_CHECK_MODULES([CPPUNIT], [cppunit >= $1])],
324
+ [m4_fatal([Missing AM_PATH_CPPUNIT or PKG_CHECK_MODULES m4 macro.])]
325
+ )]
326
+ )
327
+ ])
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/aminclude.am ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2004 Oren Ben-Kiki
2
+ # This file is distributed under the same terms as the Automake macro files.
3
+
4
+ # Generate automatic documentation using Doxygen. Goals and variables values
5
+ # are controlled by the various DX_COND_??? conditionals set by autoconf.
6
+ #
7
+ # The provided goals are:
8
+ # doxygen-doc: Generate all doxygen documentation.
9
+ # doxygen-run: Run doxygen, which will generate some of the documentation
10
+ # (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post
11
+ # processing required for the rest of it (PS, PDF, and some MAN).
12
+ # doxygen-man: Rename some doxygen generated man pages.
13
+ # doxygen-ps: Generate doxygen PostScript documentation.
14
+ # doxygen-pdf: Generate doxygen PDF documentation.
15
+ #
16
+ # Note that by default these are not integrated into the automake goals. If
17
+ # doxygen is used to generate man pages, you can achieve this integration by
18
+ # setting man3_MANS to the list of man pages generated and then adding the
19
+ # dependency:
20
+ #
21
+ # $(man3_MANS): doxygen-doc
22
+ #
23
+ # This will cause make to run doxygen and generate all the documentation.
24
+ #
25
+ # The following variable is intended for use in Makefile.am:
26
+ #
27
+ # DX_CLEANFILES = everything to clean.
28
+ #
29
+ # This is usually added to MOSTLYCLEANFILES.
30
+
31
+ ## --------------------------------- ##
32
+ ## Format-independent Doxygen rules. ##
33
+ ## --------------------------------- ##
34
+
35
+ if DX_COND_doc
36
+
37
+ ## ------------------------------- ##
38
+ ## Rules specific for HTML output. ##
39
+ ## ------------------------------- ##
40
+
41
+ if DX_COND_html
42
+
43
+ DX_CLEAN_HTML = @DX_DOCDIR@/html
44
+
45
+ endif DX_COND_html
46
+
47
+ ## ------------------------------ ##
48
+ ## Rules specific for CHM output. ##
49
+ ## ------------------------------ ##
50
+
51
+ if DX_COND_chm
52
+
53
+ DX_CLEAN_CHM = @DX_DOCDIR@/chm
54
+
55
+ if DX_COND_chi
56
+
57
+ DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
58
+
59
+ endif DX_COND_chi
60
+
61
+ endif DX_COND_chm
62
+
63
+ ## ------------------------------ ##
64
+ ## Rules specific for MAN output. ##
65
+ ## ------------------------------ ##
66
+
67
+ if DX_COND_man
68
+
69
+ DX_CLEAN_MAN = @DX_DOCDIR@/man
70
+
71
+ endif DX_COND_man
72
+
73
+ ## ------------------------------ ##
74
+ ## Rules specific for RTF output. ##
75
+ ## ------------------------------ ##
76
+
77
+ if DX_COND_rtf
78
+
79
+ DX_CLEAN_RTF = @DX_DOCDIR@/rtf
80
+
81
+ endif DX_COND_rtf
82
+
83
+ ## ------------------------------ ##
84
+ ## Rules specific for XML output. ##
85
+ ## ------------------------------ ##
86
+
87
+ if DX_COND_xml
88
+
89
+ DX_CLEAN_XML = @DX_DOCDIR@/xml
90
+
91
+ endif DX_COND_xml
92
+
93
+ ## ----------------------------- ##
94
+ ## Rules specific for PS output. ##
95
+ ## ----------------------------- ##
96
+
97
+ if DX_COND_ps
98
+
99
+ DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
100
+
101
+ DX_PS_GOAL = doxygen-ps
102
+
103
+ doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
104
+
105
+ @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
106
+ cd @DX_DOCDIR@/latex; \
107
+ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
108
+ $(DX_LATEX) refman.tex; \
109
+ $(MAKEINDEX_PATH) refman.idx; \
110
+ $(DX_LATEX) refman.tex; \
111
+ countdown=5; \
112
+ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
113
+ refman.log > /dev/null 2>&1 \
114
+ && test $$countdown -gt 0; do \
115
+ $(DX_LATEX) refman.tex; \
116
+ countdown=`expr $$countdown - 1`; \
117
+ done; \
118
+ $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
119
+
120
+ endif DX_COND_ps
121
+
122
+ ## ------------------------------ ##
123
+ ## Rules specific for PDF output. ##
124
+ ## ------------------------------ ##
125
+
126
+ if DX_COND_pdf
127
+
128
+ DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
129
+
130
+ DX_PDF_GOAL = doxygen-pdf
131
+
132
+ doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
133
+
134
+ @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
135
+ cd @DX_DOCDIR@/latex; \
136
+ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
137
+ $(DX_PDFLATEX) refman.tex; \
138
+ $(DX_MAKEINDEX) refman.idx; \
139
+ $(DX_PDFLATEX) refman.tex; \
140
+ countdown=5; \
141
+ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
142
+ refman.log > /dev/null 2>&1 \
143
+ && test $$countdown -gt 0; do \
144
+ $(DX_PDFLATEX) refman.tex; \
145
+ countdown=`expr $$countdown - 1`; \
146
+ done; \
147
+ mv refman.pdf ../@PACKAGE@.pdf
148
+
149
+ endif DX_COND_pdf
150
+
151
+ ## ------------------------------------------------- ##
152
+ ## Rules specific for LaTeX (shared for PS and PDF). ##
153
+ ## ------------------------------------------------- ##
154
+
155
+ if DX_COND_latex
156
+
157
+ DX_CLEAN_LATEX = @DX_DOCDIR@/latex
158
+
159
+ endif DX_COND_latex
160
+
161
+ .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
162
+
163
+ .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
164
+
165
+ doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
166
+
167
+ doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
168
+
169
+ @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
170
+ rm -rf @DX_DOCDIR@
171
+ $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
172
+
173
+ DX_CLEANFILES = \
174
+ @DX_DOCDIR@/@PACKAGE@.tag \
175
+ -r \
176
+ $(DX_CLEAN_HTML) \
177
+ $(DX_CLEAN_CHM) \
178
+ $(DX_CLEAN_CHI) \
179
+ $(DX_CLEAN_MAN) \
180
+ $(DX_CLEAN_RTF) \
181
+ $(DX_CLEAN_XML) \
182
+ $(DX_CLEAN_PS) \
183
+ $(DX_CLEAN_PDF) \
184
+ $(DX_CLEAN_LATEX)
185
+
186
+ endif DX_COND_doc
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/c-doc.Doxyfile ADDED
@@ -0,0 +1,1252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Doxyfile 1.4.7
2
+
3
+ # This file describes the settings to be used by the documentation system
4
+ # doxygen (www.doxygen.org) for a project
5
+ #
6
+ # All text after a hash (#) is considered a comment and will be ignored
7
+ # The format is:
8
+ # TAG = value [value, ...]
9
+ # For lists items can also be appended using:
10
+ # TAG += value [value, ...]
11
+ # Values that contain spaces should be placed between quotes (" ")
12
+
13
+ #---------------------------------------------------------------------------
14
+ # Project related configuration options
15
+ #---------------------------------------------------------------------------
16
+
17
+ # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
18
+ # by quotes) that should identify the project.
19
+
20
+ PROJECT_NAME = $(PROJECT)-$(VERSION)
21
+
22
+ # The PROJECT_NUMBER tag can be used to enter a project or revision number.
23
+ # This could be handy for archiving the generated documentation or
24
+ # if some version control system is used.
25
+
26
+ PROJECT_NUMBER =
27
+
28
+ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
29
+ # base path where the generated documentation will be put.
30
+ # If a relative path is entered, it will be relative to the location
31
+ # where doxygen was started. If left blank the current directory will be used.
32
+
33
+ OUTPUT_DIRECTORY = $(DOCDIR)
34
+
35
+ # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
36
+ # 4096 sub-directories (in 2 levels) under the output directory of each output
37
+ # format and will distribute the generated files over these directories.
38
+ # Enabling this option can be useful when feeding doxygen a huge amount of
39
+ # source files, where putting all generated files in the same directory would
40
+ # otherwise cause performance problems for the file system.
41
+
42
+ CREATE_SUBDIRS = NO
43
+
44
+ # The OUTPUT_LANGUAGE tag is used to specify the language in which all
45
+ # documentation generated by doxygen is written. Doxygen will use this
46
+ # information to generate all constant output in the proper language.
47
+ # The default language is English, other supported languages are:
48
+ # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish,
49
+ # Dutch, Finnish, French, German, Greek, Hungarian, Italian, Japanese,
50
+ # Japanese-en (Japanese with English messages), Korean, Korean-en, Norwegian,
51
+ # Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish,
52
+ # Swedish, and Ukrainian.
53
+
54
+ OUTPUT_LANGUAGE = English
55
+
56
+ # This tag can be used to specify the encoding used in the generated output.
57
+ # The encoding is not always determined by the language that is chosen,
58
+ # but also whether or not the output is meant for Windows or non-Windows users.
59
+ # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES
60
+ # forces the Windows encoding (this is the default for the Windows binary),
61
+ # whereas setting the tag to NO uses a Unix-style encoding (the default for
62
+ # all platforms other than Windows).
63
+
64
+ USE_WINDOWS_ENCODING = NO
65
+
66
+ # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
67
+ # include brief member descriptions after the members that are listed in
68
+ # the file and class documentation (similar to JavaDoc).
69
+ # Set to NO to disable this.
70
+
71
+ BRIEF_MEMBER_DESC = YES
72
+
73
+ # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
74
+ # the brief description of a member or function before the detailed description.
75
+ # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
76
+ # brief descriptions will be completely suppressed.
77
+
78
+ REPEAT_BRIEF = YES
79
+
80
+ # This tag implements a quasi-intelligent brief description abbreviator
81
+ # that is used to form the text in various listings. Each string
82
+ # in this list, if found as the leading text of the brief description, will be
83
+ # stripped from the text and the result after processing the whole list, is
84
+ # used as the annotated text. Otherwise, the brief description is used as-is.
85
+ # If left blank, the following values are used ("$name" is automatically
86
+ # replaced with the name of the entity): "The $name class" "The $name widget"
87
+ # "The $name file" "is" "provides" "specifies" "contains"
88
+ # "represents" "a" "an" "the"
89
+
90
+ ABBREVIATE_BRIEF =
91
+
92
+ # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
93
+ # Doxygen will generate a detailed section even if there is only a brief
94
+ # description.
95
+
96
+ ALWAYS_DETAILED_SEC = NO
97
+
98
+ # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
99
+ # inherited members of a class in the documentation of that class as if those
100
+ # members were ordinary class members. Constructors, destructors and assignment
101
+ # operators of the base classes will not be shown.
102
+
103
+ INLINE_INHERITED_MEMB = NO
104
+
105
+ # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
106
+ # path before files name in the file list and in the header files. If set
107
+ # to NO the shortest path that makes the file name unique will be used.
108
+
109
+ FULL_PATH_NAMES = YES
110
+
111
+ # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
112
+ # can be used to strip a user-defined part of the path. Stripping is
113
+ # only done if one of the specified strings matches the left-hand part of
114
+ # the path. The tag can be used to show relative paths in the file list.
115
+ # If left blank the directory from which doxygen is run is used as the
116
+ # path to strip.
117
+
118
+ STRIP_FROM_PATH =
119
+
120
+ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
121
+ # the path mentioned in the documentation of a class, which tells
122
+ # the reader which header file to include in order to use a class.
123
+ # If left blank only the name of the header file containing the class
124
+ # definition is used. Otherwise one should specify the include paths that
125
+ # are normally passed to the compiler using the -I flag.
126
+
127
+ STRIP_FROM_INC_PATH =
128
+
129
+ # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
130
+ # (but less readable) file names. This can be useful is your file systems
131
+ # doesn't support long names like on DOS, Mac, or CD-ROM.
132
+
133
+ SHORT_NAMES = NO
134
+
135
+ # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
136
+ # will interpret the first line (until the first dot) of a JavaDoc-style
137
+ # comment as the brief description. If set to NO, the JavaDoc
138
+ # comments will behave just like the Qt-style comments (thus requiring an
139
+ # explicit @brief command for a brief description.
140
+
141
+ JAVADOC_AUTOBRIEF = NO
142
+
143
+ # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
144
+ # treat a multi-line C++ special comment block (i.e. a block of //! or ///
145
+ # comments) as a brief description. This used to be the default behaviour.
146
+ # The new default is to treat a multi-line C++ comment block as a detailed
147
+ # description. Set this tag to YES if you prefer the old behaviour instead.
148
+
149
+ MULTILINE_CPP_IS_BRIEF = NO
150
+
151
+ # If the DETAILS_AT_TOP tag is set to YES then Doxygen
152
+ # will output the detailed description near the top, like JavaDoc.
153
+ # If set to NO, the detailed description appears after the member
154
+ # documentation.
155
+
156
+ DETAILS_AT_TOP = NO
157
+
158
+ # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
159
+ # member inherits the documentation from any documented member that it
160
+ # re-implements.
161
+
162
+ INHERIT_DOCS = YES
163
+
164
+ # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
165
+ # a new page for each member. If set to NO, the documentation of a member will
166
+ # be part of the file/class/namespace that contains it.
167
+
168
+ SEPARATE_MEMBER_PAGES = NO
169
+
170
+ # The TAB_SIZE tag can be used to set the number of spaces in a tab.
171
+ # Doxygen uses this value to replace tabs by spaces in code fragments.
172
+
173
+ TAB_SIZE = 8
174
+
175
+ # This tag can be used to specify a number of aliases that acts
176
+ # as commands in the documentation. An alias has the form "name=value".
177
+ # For example adding "sideeffect=\par Side Effects:\n" will allow you to
178
+ # put the command \sideeffect (or @sideeffect) in the documentation, which
179
+ # will result in a user-defined paragraph with heading "Side Effects:".
180
+ # You can put \n's in the value part of an alias to insert newlines.
181
+
182
+ ALIASES =
183
+
184
+ # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
185
+ # sources only. Doxygen will then generate output that is more tailored for C.
186
+ # For instance, some of the names that are used will be different. The list
187
+ # of all members will be omitted, etc.
188
+
189
+ OPTIMIZE_OUTPUT_FOR_C = YES
190
+
191
+ # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
192
+ # sources only. Doxygen will then generate output that is more tailored for Java.
193
+ # For instance, namespaces will be presented as packages, qualified scopes
194
+ # will look different, etc.
195
+
196
+ OPTIMIZE_OUTPUT_JAVA = NO
197
+
198
+ # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want to
199
+ # include (a tag file for) the STL sources as input, then you should
200
+ # set this tag to YES in order to let doxygen match functions declarations and
201
+ # definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
202
+ # func(std::string) {}). This also make the inheritance and collaboration
203
+ # diagrams that involve STL classes more complete and accurate.
204
+
205
+ BUILTIN_STL_SUPPORT = NO
206
+
207
+ # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
208
+ # tag is set to YES, then doxygen will reuse the documentation of the first
209
+ # member in the group (if any) for the other members of the group. By default
210
+ # all members of a group must be documented explicitly.
211
+
212
+ DISTRIBUTE_GROUP_DOC = NO
213
+
214
+ # Set the SUBGROUPING tag to YES (the default) to allow class member groups of
215
+ # the same type (for instance a group of public functions) to be put as a
216
+ # subgroup of that type (e.g. under the Public Functions section). Set it to
217
+ # NO to prevent subgrouping. Alternatively, this can be done per class using
218
+ # the \nosubgrouping command.
219
+
220
+ SUBGROUPING = YES
221
+
222
+ #---------------------------------------------------------------------------
223
+ # Build related configuration options
224
+ #---------------------------------------------------------------------------
225
+
226
+ # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
227
+ # documentation are documented, even if no documentation was available.
228
+ # Private class members and static file members will be hidden unless
229
+ # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
230
+
231
+ EXTRACT_ALL = NO
232
+
233
+ # If the EXTRACT_PRIVATE tag is set to YES all private members of a class
234
+ # will be included in the documentation.
235
+
236
+ EXTRACT_PRIVATE = NO
237
+
238
+ # If the EXTRACT_STATIC tag is set to YES all static members of a file
239
+ # will be included in the documentation.
240
+
241
+ EXTRACT_STATIC = YES
242
+
243
+ # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
244
+ # defined locally in source files will be included in the documentation.
245
+ # If set to NO only classes defined in header files are included.
246
+
247
+ EXTRACT_LOCAL_CLASSES = YES
248
+
249
+ # This flag is only useful for Objective-C code. When set to YES local
250
+ # methods, which are defined in the implementation section but not in
251
+ # the interface are included in the documentation.
252
+ # If set to NO (the default) only methods in the interface are included.
253
+
254
+ EXTRACT_LOCAL_METHODS = NO
255
+
256
+ # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
257
+ # undocumented members of documented classes, files or namespaces.
258
+ # If set to NO (the default) these members will be included in the
259
+ # various overviews, but no documentation section is generated.
260
+ # This option has no effect if EXTRACT_ALL is enabled.
261
+
262
+ HIDE_UNDOC_MEMBERS = NO
263
+
264
+ # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
265
+ # undocumented classes that are normally visible in the class hierarchy.
266
+ # If set to NO (the default) these classes will be included in the various
267
+ # overviews. This option has no effect if EXTRACT_ALL is enabled.
268
+
269
+ HIDE_UNDOC_CLASSES = NO
270
+
271
+ # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
272
+ # friend (class|struct|union) declarations.
273
+ # If set to NO (the default) these declarations will be included in the
274
+ # documentation.
275
+
276
+ HIDE_FRIEND_COMPOUNDS = NO
277
+
278
+ # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
279
+ # documentation blocks found inside the body of a function.
280
+ # If set to NO (the default) these blocks will be appended to the
281
+ # function's detailed documentation block.
282
+
283
+ HIDE_IN_BODY_DOCS = NO
284
+
285
+ # The INTERNAL_DOCS tag determines if documentation
286
+ # that is typed after a \internal command is included. If the tag is set
287
+ # to NO (the default) then the documentation will be excluded.
288
+ # Set it to YES to include the internal documentation.
289
+
290
+ INTERNAL_DOCS = NO
291
+
292
+ # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
293
+ # file names in lower-case letters. If set to YES upper-case letters are also
294
+ # allowed. This is useful if you have classes or files whose names only differ
295
+ # in case and if your file system supports case sensitive file names. Windows
296
+ # and Mac users are advised to set this option to NO.
297
+
298
+ CASE_SENSE_NAMES = YES
299
+
300
+ # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
301
+ # will show members with their full class and namespace scopes in the
302
+ # documentation. If set to YES the scope will be hidden.
303
+
304
+ HIDE_SCOPE_NAMES = NO
305
+
306
+ # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
307
+ # will put a list of the files that are included by a file in the documentation
308
+ # of that file.
309
+
310
+ SHOW_INCLUDE_FILES = NO
311
+
312
+ # If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
313
+ # is inserted in the documentation for inline members.
314
+
315
+ INLINE_INFO = YES
316
+
317
+ # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
318
+ # will sort the (detailed) documentation of file and class members
319
+ # alphabetically by member name. If set to NO the members will appear in
320
+ # declaration order.
321
+
322
+ SORT_MEMBER_DOCS = YES
323
+
324
+ # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
325
+ # brief documentation of file, namespace and class members alphabetically
326
+ # by member name. If set to NO (the default) the members will appear in
327
+ # declaration order.
328
+
329
+ SORT_BRIEF_DOCS = NO
330
+
331
+ # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
332
+ # sorted by fully-qualified names, including namespaces. If set to
333
+ # NO (the default), the class list will be sorted only by class name,
334
+ # not including the namespace part.
335
+ # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
336
+ # Note: This option applies only to the class list, not to the
337
+ # alphabetical list.
338
+
339
+ SORT_BY_SCOPE_NAME = NO
340
+
341
+ # The GENERATE_TODOLIST tag can be used to enable (YES) or
342
+ # disable (NO) the todo list. This list is created by putting \todo
343
+ # commands in the documentation.
344
+
345
+ GENERATE_TODOLIST = YES
346
+
347
+ # The GENERATE_TESTLIST tag can be used to enable (YES) or
348
+ # disable (NO) the test list. This list is created by putting \test
349
+ # commands in the documentation.
350
+
351
+ GENERATE_TESTLIST = YES
352
+
353
+ # The GENERATE_BUGLIST tag can be used to enable (YES) or
354
+ # disable (NO) the bug list. This list is created by putting \bug
355
+ # commands in the documentation.
356
+
357
+ GENERATE_BUGLIST = YES
358
+
359
+ # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
360
+ # disable (NO) the deprecated list. This list is created by putting
361
+ # \deprecated commands in the documentation.
362
+
363
+ GENERATE_DEPRECATEDLIST = YES
364
+
365
+ # The ENABLED_SECTIONS tag can be used to enable conditional
366
+ # documentation sections, marked by \if sectionname ... \endif.
367
+
368
+ ENABLED_SECTIONS =
369
+
370
+ # The MAX_INITIALIZER_LINES tag determines the maximum number of lines
371
+ # the initial value of a variable or define consists of for it to appear in
372
+ # the documentation. If the initializer consists of more lines than specified
373
+ # here it will be hidden. Use a value of 0 to hide initializers completely.
374
+ # The appearance of the initializer of individual variables and defines in the
375
+ # documentation can be controlled using \showinitializer or \hideinitializer
376
+ # command in the documentation regardless of this setting.
377
+
378
+ MAX_INITIALIZER_LINES = 30
379
+
380
+ # Set the SHOW_USED_FILES tag to NO to disable the list of files generated
381
+ # at the bottom of the documentation of classes and structs. If set to YES the
382
+ # list will mention the files that were used to generate the documentation.
383
+
384
+ SHOW_USED_FILES = YES
385
+
386
+ # If the sources in your project are distributed over multiple directories
387
+ # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
388
+ # in the documentation. The default is NO.
389
+
390
+ SHOW_DIRECTORIES = NO
391
+
392
+ # The FILE_VERSION_FILTER tag can be used to specify a program or script that
393
+ # doxygen should invoke to get the current version for each file (typically from the
394
+ # version control system). Doxygen will invoke the program by executing (via
395
+ # popen()) the command <command> <input-file>, where <command> is the value of
396
+ # the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
397
+ # provided by doxygen. Whatever the program writes to standard output
398
+ # is used as the file version. See the manual for examples.
399
+
400
+ FILE_VERSION_FILTER =
401
+
402
+ #---------------------------------------------------------------------------
403
+ # configuration options related to warning and progress messages
404
+ #---------------------------------------------------------------------------
405
+
406
+ # The QUIET tag can be used to turn on/off the messages that are generated
407
+ # by doxygen. Possible values are YES and NO. If left blank NO is used.
408
+
409
+ QUIET = NO
410
+
411
+ # The WARNINGS tag can be used to turn on/off the warning messages that are
412
+ # generated by doxygen. Possible values are YES and NO. If left blank
413
+ # NO is used.
414
+
415
+ WARNINGS = YES
416
+
417
+ # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
418
+ # for undocumented members. If EXTRACT_ALL is set to YES then this flag will
419
+ # automatically be disabled.
420
+
421
+ WARN_IF_UNDOCUMENTED = YES
422
+
423
+ # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
424
+ # potential errors in the documentation, such as not documenting some
425
+ # parameters in a documented function, or documenting parameters that
426
+ # don't exist or using markup commands wrongly.
427
+
428
+ WARN_IF_DOC_ERROR = YES
429
+
430
+ # This WARN_NO_PARAMDOC option can be abled to get warnings for
431
+ # functions that are documented, but have no documentation for their parameters
432
+ # or return value. If set to NO (the default) doxygen will only warn about
433
+ # wrong or incomplete parameter documentation, but not about the absence of
434
+ # documentation.
435
+
436
+ WARN_NO_PARAMDOC = NO
437
+
438
+ # The WARN_FORMAT tag determines the format of the warning messages that
439
+ # doxygen can produce. The string should contain the $file, $line, and $text
440
+ # tags, which will be replaced by the file and line number from which the
441
+ # warning originated and the warning text. Optionally the format may contain
442
+ # $version, which will be replaced by the version of the file (if it could
443
+ # be obtained via FILE_VERSION_FILTER)
444
+
445
+ WARN_FORMAT = "$file:$line: $text"
446
+
447
+ # The WARN_LOGFILE tag can be used to specify a file to which warning
448
+ # and error messages should be written. If left blank the output is written
449
+ # to stderr.
450
+
451
+ WARN_LOGFILE =
452
+
453
+ #---------------------------------------------------------------------------
454
+ # configuration options related to the input files
455
+ #---------------------------------------------------------------------------
456
+
457
+ # The INPUT tag can be used to specify the files and/or directories that contain
458
+ # documented source files. You may enter file names like "myfile.cpp" or
459
+ # directories like "/usr/src/myproject". Separate the files or directories
460
+ # with spaces.
461
+
462
+ INPUT = include/zookeeper.h
463
+
464
+ # If the value of the INPUT tag contains directories, you can use the
465
+ # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
466
+ # and *.h) to filter out the source-files in the directories. If left
467
+ # blank the following patterns are tested:
468
+ # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
469
+ # *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py
470
+
471
+ FILE_PATTERNS =
472
+
473
+ # The RECURSIVE tag can be used to turn specify whether or not subdirectories
474
+ # should be searched for input files as well. Possible values are YES and NO.
475
+ # If left blank NO is used.
476
+
477
+ RECURSIVE = NO
478
+
479
+ # The EXCLUDE tag can be used to specify files and/or directories that should
480
+ # excluded from the INPUT source files. This way you can easily exclude a
481
+ # subdirectory from a directory tree whose root is specified with the INPUT tag.
482
+
483
+ EXCLUDE =
484
+
485
+ # The EXCLUDE_SYMLINKS tag can be used select whether or not files or
486
+ # directories that are symbolic links (a Unix filesystem feature) are excluded
487
+ # from the input.
488
+
489
+ EXCLUDE_SYMLINKS = NO
490
+
491
+ # If the value of the INPUT tag contains directories, you can use the
492
+ # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
493
+ # certain files from those directories. Note that the wildcards are matched
494
+ # against the file with absolute path, so to exclude all test directories
495
+ # for example use the pattern */test/*
496
+
497
+ EXCLUDE_PATTERNS =
498
+
499
+ # The EXAMPLE_PATH tag can be used to specify one or more files or
500
+ # directories that contain example code fragments that are included (see
501
+ # the \include command).
502
+
503
+ EXAMPLE_PATH =
504
+
505
+ # If the value of the EXAMPLE_PATH tag contains directories, you can use the
506
+ # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
507
+ # and *.h) to filter out the source-files in the directories. If left
508
+ # blank all files are included.
509
+
510
+ EXAMPLE_PATTERNS =
511
+
512
+ # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
513
+ # searched for input files to be used with the \include or \dontinclude
514
+ # commands irrespective of the value of the RECURSIVE tag.
515
+ # Possible values are YES and NO. If left blank NO is used.
516
+
517
+ EXAMPLE_RECURSIVE = NO
518
+
519
+ # The IMAGE_PATH tag can be used to specify one or more files or
520
+ # directories that contain image that are included in the documentation (see
521
+ # the \image command).
522
+
523
+ IMAGE_PATH =
524
+
525
+ # The INPUT_FILTER tag can be used to specify a program that doxygen should
526
+ # invoke to filter for each input file. Doxygen will invoke the filter program
527
+ # by executing (via popen()) the command <filter> <input-file>, where <filter>
528
+ # is the value of the INPUT_FILTER tag, and <input-file> is the name of an
529
+ # input file. Doxygen will then use the output that the filter program writes
530
+ # to standard output. If FILTER_PATTERNS is specified, this tag will be
531
+ # ignored.
532
+
533
+ INPUT_FILTER =
534
+
535
+ # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
536
+ # basis. Doxygen will compare the file name with each pattern and apply the
537
+ # filter if there is a match. The filters are a list of the form:
538
+ # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
539
+ # info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
540
+ # is applied to all files.
541
+
542
+ FILTER_PATTERNS =
543
+
544
+ # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
545
+ # INPUT_FILTER) will be used to filter the input files when producing source
546
+ # files to browse (i.e. when SOURCE_BROWSER is set to YES).
547
+
548
+ FILTER_SOURCE_FILES = NO
549
+
550
+ #---------------------------------------------------------------------------
551
+ # configuration options related to source browsing
552
+ #---------------------------------------------------------------------------
553
+
554
+ # If the SOURCE_BROWSER tag is set to YES then a list of source files will
555
+ # be generated. Documented entities will be cross-referenced with these sources.
556
+ # Note: To get rid of all source code in the generated output, make sure also
557
+ # VERBATIM_HEADERS is set to NO.
558
+
559
+ SOURCE_BROWSER = NO
560
+
561
+ # Setting the INLINE_SOURCES tag to YES will include the body
562
+ # of functions and classes directly in the documentation.
563
+
564
+ INLINE_SOURCES = NO
565
+
566
+ # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
567
+ # doxygen to hide any special comment blocks from generated source code
568
+ # fragments. Normal C and C++ comments will always remain visible.
569
+
570
+ STRIP_CODE_COMMENTS = YES
571
+
572
+ # If the REFERENCED_BY_RELATION tag is set to YES (the default)
573
+ # then for each documented function all documented
574
+ # functions referencing it will be listed.
575
+
576
+ REFERENCED_BY_RELATION = YES
577
+
578
+ # If the REFERENCES_RELATION tag is set to YES (the default)
579
+ # then for each documented function all documented entities
580
+ # called/used by that function will be listed.
581
+
582
+ REFERENCES_RELATION = YES
583
+
584
+ # If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
585
+ # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
586
+ # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
587
+ # link to the source code. Otherwise they will link to the documentstion.
588
+
589
+ REFERENCES_LINK_SOURCE = YES
590
+
591
+ # If the USE_HTAGS tag is set to YES then the references to source code
592
+ # will point to the HTML generated by the htags(1) tool instead of doxygen
593
+ # built-in source browser. The htags tool is part of GNU's global source
594
+ # tagging system (see http://www.gnu.org/software/global/global.html). You
595
+ # will need version 4.8.6 or higher.
596
+
597
+ USE_HTAGS = NO
598
+
599
+ # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
600
+ # will generate a verbatim copy of the header file for each class for
601
+ # which an include is specified. Set to NO to disable this.
602
+
603
+ VERBATIM_HEADERS = YES
604
+
605
+ #---------------------------------------------------------------------------
606
+ # configuration options related to the alphabetical class index
607
+ #---------------------------------------------------------------------------
608
+
609
+ # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
610
+ # of all compounds will be generated. Enable this if the project
611
+ # contains a lot of classes, structs, unions or interfaces.
612
+
613
+ ALPHABETICAL_INDEX = NO
614
+
615
+ # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
616
+ # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
617
+ # in which this list will be split (can be a number in the range [1..20])
618
+
619
+ COLS_IN_ALPHA_INDEX = 5
620
+
621
+ # In case all classes in a project start with a common prefix, all
622
+ # classes will be put under the same header in the alphabetical index.
623
+ # The IGNORE_PREFIX tag can be used to specify one or more prefixes that
624
+ # should be ignored while generating the index headers.
625
+
626
+ IGNORE_PREFIX =
627
+
628
+ #---------------------------------------------------------------------------
629
+ # configuration options related to the HTML output
630
+ #---------------------------------------------------------------------------
631
+
632
+ # If the GENERATE_HTML tag is set to YES (the default) Doxygen will
633
+ # generate HTML output.
634
+
635
+ GENERATE_HTML = $(GENERATE_HTML)
636
+
637
+ # The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
638
+ # If a relative path is entered the value of OUTPUT_DIRECTORY will be
639
+ # put in front of it. If left blank `html' will be used as the default path.
640
+
641
+ HTML_OUTPUT = html
642
+
643
+ # The HTML_FILE_EXTENSION tag can be used to specify the file extension for
644
+ # each generated HTML page (for example: .htm,.php,.asp). If it is left blank
645
+ # doxygen will generate files with .html extension.
646
+
647
+ HTML_FILE_EXTENSION = .html
648
+
649
+ # The HTML_HEADER tag can be used to specify a personal HTML header for
650
+ # each generated HTML page. If it is left blank doxygen will generate a
651
+ # standard header.
652
+
653
+ HTML_HEADER =
654
+
655
+ # The HTML_FOOTER tag can be used to specify a personal HTML footer for
656
+ # each generated HTML page. If it is left blank doxygen will generate a
657
+ # standard footer.
658
+
659
+ HTML_FOOTER =
660
+
661
+ # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
662
+ # style sheet that is used by each HTML page. It can be used to
663
+ # fine-tune the look of the HTML output. If the tag is left blank doxygen
664
+ # will generate a default style sheet. Note that doxygen will try to copy
665
+ # the style sheet file to the HTML output directory, so don't put your own
666
+ # stylesheet in the HTML output directory as well, or it will be erased!
667
+
668
+ HTML_STYLESHEET =
669
+
670
+ # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
671
+ # files or namespaces will be aligned in HTML using tables. If set to
672
+ # NO a bullet list will be used.
673
+
674
+ HTML_ALIGN_MEMBERS = YES
675
+
676
+ # If the GENERATE_HTMLHELP tag is set to YES, additional index files
677
+ # will be generated that can be used as input for tools like the
678
+ # Microsoft HTML help workshop to generate a compressed HTML help file (.chm)
679
+ # of the generated HTML documentation.
680
+
681
+ GENERATE_HTMLHELP = $(GENERATE_HTMLHELP)
682
+
683
+ # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
684
+ # be used to specify the file name of the resulting .chm file. You
685
+ # can add a path in front of the file if the result should not be
686
+ # written to the html output directory.
687
+
688
+ CHM_FILE = ../$(PROJECT).chm
689
+
690
+ # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
691
+ # be used to specify the location (absolute path including file name) of
692
+ # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
693
+ # the HTML help compiler on the generated index.hhp.
694
+
695
+ HHC_LOCATION = $(HHC_PATH)
696
+
697
+ # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
698
+ # controls if a separate .chi index file is generated (YES) or that
699
+ # it should be included in the master .chm file (NO).
700
+
701
+ GENERATE_CHI = $(GENERATE_CHI)
702
+
703
+ # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
704
+ # controls whether a binary table of contents is generated (YES) or a
705
+ # normal table of contents (NO) in the .chm file.
706
+
707
+ BINARY_TOC = NO
708
+
709
+ # The TOC_EXPAND flag can be set to YES to add extra items for group members
710
+ # to the contents of the HTML help documentation and to the tree view.
711
+
712
+ TOC_EXPAND = NO
713
+
714
+ # The DISABLE_INDEX tag can be used to turn on/off the condensed index at
715
+ # top of each HTML page. The value NO (the default) enables the index and
716
+ # the value YES disables it.
717
+
718
+ DISABLE_INDEX = NO
719
+
720
+ # This tag can be used to set the number of enum values (range [1..20])
721
+ # that doxygen will group on one line in the generated HTML documentation.
722
+
723
+ ENUM_VALUES_PER_LINE = 4
724
+
725
+ # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be
726
+ # generated containing a tree-like index structure (just like the one that
727
+ # is generated for HTML Help). For this to work a browser that supports
728
+ # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
729
+ # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
730
+ # probably better off using the HTML help feature.
731
+
732
+ GENERATE_TREEVIEW = NO
733
+
734
+ # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
735
+ # used to set the initial width (in pixels) of the frame in which the tree
736
+ # is shown.
737
+
738
+ TREEVIEW_WIDTH = 250
739
+
740
+ #---------------------------------------------------------------------------
741
+ # configuration options related to the LaTeX output
742
+ #---------------------------------------------------------------------------
743
+
744
+ # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
745
+ # generate Latex output.
746
+
747
+ GENERATE_LATEX = $(GENERATE_LATEX)
748
+
749
+ # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
750
+ # If a relative path is entered the value of OUTPUT_DIRECTORY will be
751
+ # put in front of it. If left blank `latex' will be used as the default path.
752
+
753
+ LATEX_OUTPUT = latex
754
+
755
+ # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
756
+ # invoked. If left blank `latex' will be used as the default command name.
757
+
758
+ LATEX_CMD_NAME = latex
759
+
760
+ # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
761
+ # generate index for LaTeX. If left blank `makeindex' will be used as the
762
+ # default command name.
763
+
764
+ MAKEINDEX_CMD_NAME = makeindex
765
+
766
+ # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
767
+ # LaTeX documents. This may be useful for small projects and may help to
768
+ # save some trees in general.
769
+
770
+ COMPACT_LATEX = NO
771
+
772
+ # The PAPER_TYPE tag can be used to set the paper type that is used
773
+ # by the printer. Possible values are: a4, a4wide, letter, legal and
774
+ # executive. If left blank a4wide will be used.
775
+
776
+ PAPER_TYPE = $(PAPER_SIZE)
777
+
778
+ # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
779
+ # packages that should be included in the LaTeX output.
780
+
781
+ EXTRA_PACKAGES =
782
+
783
+ # The LATEX_HEADER tag can be used to specify a personal LaTeX header for
784
+ # the generated latex document. The header should contain everything until
785
+ # the first chapter. If it is left blank doxygen will generate a
786
+ # standard header. Notice: only use this tag if you know what you are doing!
787
+
788
+ LATEX_HEADER =
789
+
790
+ # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
791
+ # is prepared for conversion to pdf (using ps2pdf). The pdf file will
792
+ # contain links (just like the HTML output) instead of page references
793
+ # This makes the output suitable for online browsing using a pdf viewer.
794
+
795
+ PDF_HYPERLINKS = NO
796
+
797
+ # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
798
+ # plain latex in the generated Makefile. Set this option to YES to get a
799
+ # higher quality PDF documentation.
800
+
801
+ USE_PDFLATEX = $(GENERATE_PDF)
802
+
803
+ # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
804
+ # command to the generated LaTeX files. This will instruct LaTeX to keep
805
+ # running if errors occur, instead of asking the user for help.
806
+ # This option is also used when generating formulas in HTML.
807
+
808
+ LATEX_BATCHMODE = NO
809
+
810
+ # If LATEX_HIDE_INDICES is set to YES then doxygen will not
811
+ # include the index chapters (such as File Index, Compound Index, etc.)
812
+ # in the output.
813
+
814
+ LATEX_HIDE_INDICES = NO
815
+
816
+ #---------------------------------------------------------------------------
817
+ # configuration options related to the RTF output
818
+ #---------------------------------------------------------------------------
819
+
820
+ # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
821
+ # The RTF output is optimized for Word 97 and may not look very pretty with
822
+ # other RTF readers or editors.
823
+
824
+ GENERATE_RTF = $(GENERATE_RTF)
825
+
826
+ # The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
827
+ # If a relative path is entered the value of OUTPUT_DIRECTORY will be
828
+ # put in front of it. If left blank `rtf' will be used as the default path.
829
+
830
+ RTF_OUTPUT = rtf
831
+
832
+ # If the COMPACT_RTF tag is set to YES Doxygen generates more compact
833
+ # RTF documents. This may be useful for small projects and may help to
834
+ # save some trees in general.
835
+
836
+ COMPACT_RTF = NO
837
+
838
+ # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
839
+ # will contain hyperlink fields. The RTF file will
840
+ # contain links (just like the HTML output) instead of page references.
841
+ # This makes the output suitable for online browsing using WORD or other
842
+ # programs which support those fields.
843
+ # Note: wordpad (write) and others do not support links.
844
+
845
+ RTF_HYPERLINKS = NO
846
+
847
+ # Load stylesheet definitions from file. Syntax is similar to doxygen's
848
+ # config file, i.e. a series of assignments. You only have to provide
849
+ # replacements, missing definitions are set to their default value.
850
+
851
+ RTF_STYLESHEET_FILE =
852
+
853
+ # Set optional variables used in the generation of an rtf document.
854
+ # Syntax is similar to doxygen's config file.
855
+
856
+ RTF_EXTENSIONS_FILE =
857
+
858
+ #---------------------------------------------------------------------------
859
+ # configuration options related to the man page output
860
+ #---------------------------------------------------------------------------
861
+
862
+ # If the GENERATE_MAN tag is set to YES (the default) Doxygen will
863
+ # generate man pages
864
+
865
+ GENERATE_MAN = $(GENERATE_MAN)
866
+
867
+ # The MAN_OUTPUT tag is used to specify where the man pages will be put.
868
+ # If a relative path is entered the value of OUTPUT_DIRECTORY will be
869
+ # put in front of it. If left blank `man' will be used as the default path.
870
+
871
+ MAN_OUTPUT = man
872
+
873
+ # The MAN_EXTENSION tag determines the extension that is added to
874
+ # the generated man pages (default is the subroutine's section .3)
875
+
876
+ MAN_EXTENSION = .3
877
+
878
+ # If the MAN_LINKS tag is set to YES and Doxygen generates man output,
879
+ # then it will generate one additional man file for each entity
880
+ # documented in the real man page(s). These additional files
881
+ # only source the real man page, but without them the man command
882
+ # would be unable to find the correct page. The default is NO.
883
+
884
+ MAN_LINKS = NO
885
+
886
+ #---------------------------------------------------------------------------
887
+ # configuration options related to the XML output
888
+ #---------------------------------------------------------------------------
889
+
890
+ # If the GENERATE_XML tag is set to YES Doxygen will
891
+ # generate an XML file that captures the structure of
892
+ # the code including all documentation.
893
+
894
+ GENERATE_XML = $(GENERATE_XML)
895
+
896
+ # The XML_OUTPUT tag is used to specify where the XML pages will be put.
897
+ # If a relative path is entered the value of OUTPUT_DIRECTORY will be
898
+ # put in front of it. If left blank `xml' will be used as the default path.
899
+
900
+ XML_OUTPUT = xml
901
+
902
+ # The XML_SCHEMA tag can be used to specify an XML schema,
903
+ # which can be used by a validating XML parser to check the
904
+ # syntax of the XML files.
905
+
906
+ XML_SCHEMA =
907
+
908
+ # The XML_DTD tag can be used to specify an XML DTD,
909
+ # which can be used by a validating XML parser to check the
910
+ # syntax of the XML files.
911
+
912
+ XML_DTD =
913
+
914
+ # If the XML_PROGRAMLISTING tag is set to YES Doxygen will
915
+ # dump the program listings (including syntax highlighting
916
+ # and cross-referencing information) to the XML output. Note that
917
+ # enabling this will significantly increase the size of the XML output.
918
+
919
+ XML_PROGRAMLISTING = YES
920
+
921
+ #---------------------------------------------------------------------------
922
+ # configuration options for the AutoGen Definitions output
923
+ #---------------------------------------------------------------------------
924
+
925
+ # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
926
+ # generate an AutoGen Definitions (see autogen.sf.net) file
927
+ # that captures the structure of the code including all
928
+ # documentation. Note that this feature is still experimental
929
+ # and incomplete at the moment.
930
+
931
+ GENERATE_AUTOGEN_DEF = NO
932
+
933
+ #---------------------------------------------------------------------------
934
+ # configuration options related to the Perl module output
935
+ #---------------------------------------------------------------------------
936
+
937
+ # If the GENERATE_PERLMOD tag is set to YES Doxygen will
938
+ # generate a Perl module file that captures the structure of
939
+ # the code including all documentation. Note that this
940
+ # feature is still experimental and incomplete at the
941
+ # moment.
942
+
943
+ GENERATE_PERLMOD = NO
944
+
945
+ # If the PERLMOD_LATEX tag is set to YES Doxygen will generate
946
+ # the necessary Makefile rules, Perl scripts and LaTeX code to be able
947
+ # to generate PDF and DVI output from the Perl module output.
948
+
949
+ PERLMOD_LATEX = NO
950
+
951
+ # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
952
+ # nicely formatted so it can be parsed by a human reader. This is useful
953
+ # if you want to understand what is going on. On the other hand, if this
954
+ # tag is set to NO the size of the Perl module output will be much smaller
955
+ # and Perl will parse it just the same.
956
+
957
+ PERLMOD_PRETTY = YES
958
+
959
+ # The names of the make variables in the generated doxyrules.make file
960
+ # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
961
+ # This is useful so different doxyrules.make files included by the same
962
+ # Makefile don't overwrite each other's variables.
963
+
964
+ PERLMOD_MAKEVAR_PREFIX =
965
+
966
+ #---------------------------------------------------------------------------
967
+ # Configuration options related to the preprocessor
968
+ #---------------------------------------------------------------------------
969
+
970
+ # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
971
+ # evaluate all C-preprocessor directives found in the sources and include
972
+ # files.
973
+
974
+ ENABLE_PREPROCESSING = YES
975
+
976
+ # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
977
+ # names in the source code. If set to NO (the default) only conditional
978
+ # compilation will be performed. Macro expansion can be done in a controlled
979
+ # way by setting EXPAND_ONLY_PREDEF to YES.
980
+
981
+ MACRO_EXPANSION = NO
982
+
983
+ # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
984
+ # then the macro expansion is limited to the macros specified with the
985
+ # PREDEFINED and EXPAND_AS_DEFINED tags.
986
+
987
+ EXPAND_ONLY_PREDEF = NO
988
+
989
+ # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
990
+ # in the INCLUDE_PATH (see below) will be search if a #include is found.
991
+
992
+ SEARCH_INCLUDES = YES
993
+
994
+ # The INCLUDE_PATH tag can be used to specify one or more directories that
995
+ # contain include files that are not input files but should be processed by
996
+ # the preprocessor.
997
+
998
+ INCLUDE_PATH =
999
+
1000
+ # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
1001
+ # patterns (like *.h and *.hpp) to filter out the header-files in the
1002
+ # directories. If left blank, the patterns specified with FILE_PATTERNS will
1003
+ # be used.
1004
+
1005
+ INCLUDE_FILE_PATTERNS =
1006
+
1007
+ # The PREDEFINED tag can be used to specify one or more macro names that
1008
+ # are defined before the preprocessor is started (similar to the -D option of
1009
+ # gcc). The argument of the tag is a list of macros of the form: name
1010
+ # or name=definition (no spaces). If the definition and the = are
1011
+ # omitted =1 is assumed. To prevent a macro definition from being
1012
+ # undefined via #undef or recursively expanded use the := operator
1013
+ # instead of the = operator.
1014
+
1015
+ PREDEFINED =
1016
+
1017
+ # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
1018
+ # this tag can be used to specify a list of macro names that should be expanded.
1019
+ # The macro definition that is found in the sources will be used.
1020
+ # Use the PREDEFINED tag if you want to use a different macro definition.
1021
+
1022
+ EXPAND_AS_DEFINED =
1023
+
1024
+ # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
1025
+ # doxygen's preprocessor will remove all function-like macros that are alone
1026
+ # on a line, have an all uppercase name, and do not end with a semicolon. Such
1027
+ # function macros are typically used for boiler-plate code, and will confuse
1028
+ # the parser if not removed.
1029
+
1030
+ SKIP_FUNCTION_MACROS = YES
1031
+
1032
+ #---------------------------------------------------------------------------
1033
+ # Configuration::additions related to external references
1034
+ #---------------------------------------------------------------------------
1035
+
1036
+ # The TAGFILES option can be used to specify one or more tagfiles.
1037
+ # Optionally an initial location of the external documentation
1038
+ # can be added for each tagfile. The format of a tag file without
1039
+ # this location is as follows:
1040
+ # TAGFILES = file1 file2 ...
1041
+ # Adding location for the tag files is done as follows:
1042
+ # TAGFILES = file1=loc1 "file2 = loc2" ...
1043
+ # where "loc1" and "loc2" can be relative or absolute paths or
1044
+ # URLs. If a location is present for each tag, the installdox tool
1045
+ # does not have to be run to correct the links.
1046
+ # Note that each tag file must have a unique name
1047
+ # (where the name does NOT include the path)
1048
+ # If a tag file is not located in the directory in which doxygen
1049
+ # is run, you must also specify the path to the tagfile here.
1050
+
1051
+ TAGFILES =
1052
+
1053
+ # When a file name is specified after GENERATE_TAGFILE, doxygen will create
1054
+ # a tag file that is based on the input files it reads.
1055
+
1056
+ GENERATE_TAGFILE = $(DOCDIR)/$(PROJECT).tag
1057
+
1058
+ # If the ALLEXTERNALS tag is set to YES all external classes will be listed
1059
+ # in the class index. If set to NO only the inherited external classes
1060
+ # will be listed.
1061
+
1062
+ ALLEXTERNALS = NO
1063
+
1064
+ # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
1065
+ # in the modules index. If set to NO, only the current project's groups will
1066
+ # be listed.
1067
+
1068
+ EXTERNAL_GROUPS = YES
1069
+
1070
+ # The PERL_PATH should be the absolute path and name of the perl script
1071
+ # interpreter (i.e. the result of `which perl').
1072
+
1073
+ PERL_PATH = /usr/bin/perl
1074
+
1075
+ #---------------------------------------------------------------------------
1076
+ # Configuration options related to the dot tool
1077
+ #---------------------------------------------------------------------------
1078
+
1079
+ # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
1080
+ # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
1081
+ # or super classes. Setting the tag to NO turns the diagrams off. Note that
1082
+ # this option is superseded by the HAVE_DOT option below. This is only a
1083
+ # fallback. It is recommended to install and use dot, since it yields more
1084
+ # powerful graphs.
1085
+
1086
+ CLASS_DIAGRAMS = YES
1087
+
1088
+ # If set to YES, the inheritance and collaboration graphs will hide
1089
+ # inheritance and usage relations if the target is undocumented
1090
+ # or is not a class.
1091
+
1092
+ HIDE_UNDOC_RELATIONS = YES
1093
+
1094
+ # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
1095
+ # available from the path. This tool is part of Graphviz, a graph visualization
1096
+ # toolkit from AT&T and Lucent Bell Labs. The other options in this section
1097
+ # have no effect if this option is set to NO (the default)
1098
+
1099
+ HAVE_DOT = $(HAVE_DOT)
1100
+
1101
+ # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
1102
+ # will generate a graph for each documented class showing the direct and
1103
+ # indirect inheritance relations. Setting this tag to YES will force the
1104
+ # the CLASS_DIAGRAMS tag to NO.
1105
+
1106
+ CLASS_GRAPH = YES
1107
+
1108
+ # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
1109
+ # will generate a graph for each documented class showing the direct and
1110
+ # indirect implementation dependencies (inheritance, containment, and
1111
+ # class references variables) of the class with other documented classes.
1112
+
1113
+ COLLABORATION_GRAPH = YES
1114
+
1115
+ # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
1116
+ # will generate a graph for groups, showing the direct groups dependencies
1117
+
1118
+ GROUP_GRAPHS = YES
1119
+
1120
+ # If the UML_LOOK tag is set to YES doxygen will generate inheritance and
1121
+ # collaboration diagrams in a style similar to the OMG's Unified Modeling
1122
+ # Language.
1123
+
1124
+ UML_LOOK = NO
1125
+
1126
+ # If set to YES, the inheritance and collaboration graphs will show the
1127
+ # relations between templates and their instances.
1128
+
1129
+ TEMPLATE_RELATIONS = NO
1130
+
1131
+ # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
1132
+ # tags are set to YES then doxygen will generate a graph for each documented
1133
+ # file showing the direct and indirect include dependencies of the file with
1134
+ # other documented files.
1135
+
1136
+ INCLUDE_GRAPH = YES
1137
+
1138
+ # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
1139
+ # HAVE_DOT tags are set to YES then doxygen will generate a graph for each
1140
+ # documented header file showing the documented files that directly or
1141
+ # indirectly include this file.
1142
+
1143
+ INCLUDED_BY_GRAPH = YES
1144
+
1145
+ # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will
1146
+ # generate a call dependency graph for every global function or class method.
1147
+ # Note that enabling this option will significantly increase the time of a run.
1148
+ # So in most cases it will be better to enable call graphs for selected
1149
+ # functions only using the \callgraph command.
1150
+
1151
+ CALL_GRAPH = NO
1152
+
1153
+ # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then doxygen will
1154
+ # generate a caller dependency graph for every global function or class method.
1155
+ # Note that enabling this option will significantly increase the time of a run.
1156
+ # So in most cases it will be better to enable caller graphs for selected
1157
+ # functions only using the \callergraph command.
1158
+
1159
+ CALLER_GRAPH = NO
1160
+
1161
+ # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
1162
+ # will graphical hierarchy of all classes instead of a textual one.
1163
+
1164
+ GRAPHICAL_HIERARCHY = YES
1165
+
1166
+ # If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
1167
+ # then doxygen will show the dependencies a directory has on other directories
1168
+ # in a graphical way. The dependency relations are determined by the #include
1169
+ # relations between the files in the directories.
1170
+
1171
+ DIRECTORY_GRAPH = YES
1172
+
1173
+ # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
1174
+ # generated by dot. Possible values are png, jpg, or gif
1175
+ # If left blank png will be used.
1176
+
1177
+ DOT_IMAGE_FORMAT = png
1178
+
1179
+ # The tag DOT_PATH can be used to specify the path where the dot tool can be
1180
+ # found. If left blank, it is assumed the dot tool can be found in the path.
1181
+
1182
+ DOT_PATH = $(DOT_PATH)
1183
+
1184
+ # The DOTFILE_DIRS tag can be used to specify one or more directories that
1185
+ # contain dot files that are included in the documentation (see the
1186
+ # \dotfile command).
1187
+
1188
+ DOTFILE_DIRS =
1189
+
1190
+ # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width
1191
+ # (in pixels) of the graphs generated by dot. If a graph becomes larger than
1192
+ # this value, doxygen will try to truncate the graph, so that it fits within
1193
+ # the specified constraint. Beware that most browsers cannot cope with very
1194
+ # large images.
1195
+
1196
+ MAX_DOT_GRAPH_WIDTH = 1024
1197
+
1198
+ # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height
1199
+ # (in pixels) of the graphs generated by dot. If a graph becomes larger than
1200
+ # this value, doxygen will try to truncate the graph, so that it fits within
1201
+ # the specified constraint. Beware that most browsers cannot cope with very
1202
+ # large images.
1203
+
1204
+ MAX_DOT_GRAPH_HEIGHT = 1024
1205
+
1206
+ # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
1207
+ # graphs generated by dot. A depth value of 3 means that only nodes reachable
1208
+ # from the root by following a path via at most 3 edges will be shown. Nodes
1209
+ # that lay further from the root node will be omitted. Note that setting this
1210
+ # option to 1 or 2 may greatly reduce the computation time needed for large
1211
+ # code bases. Also note that a graph may be further truncated if the graph's
1212
+ # image dimensions are not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH
1213
+ # and MAX_DOT_GRAPH_HEIGHT). If 0 is used for the depth value (the default),
1214
+ # the graph is not depth-constrained.
1215
+
1216
+ MAX_DOT_GRAPH_DEPTH = 0
1217
+
1218
+ # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
1219
+ # background. This is disabled by default, which results in a white background.
1220
+ # Warning: Depending on the platform used, enabling this option may lead to
1221
+ # badly anti-aliased labels on the edges of a graph (i.e. they become hard to
1222
+ # read).
1223
+
1224
+ DOT_TRANSPARENT = NO
1225
+
1226
+ # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
1227
+ # files in one run (i.e. multiple -o and -T options on the command line). This
1228
+ # makes dot run faster, but since only newer versions of dot (>1.8.10)
1229
+ # support this, this feature is disabled by default.
1230
+
1231
+ DOT_MULTI_TARGETS = NO
1232
+
1233
+ # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
1234
+ # generate a legend page explaining the meaning of the various boxes and
1235
+ # arrows in the dot generated graphs.
1236
+
1237
+ GENERATE_LEGEND = YES
1238
+
1239
+ # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
1240
+ # remove the intermediate dot files that are used to generate
1241
+ # the various graphs.
1242
+
1243
+ DOT_CLEANUP = YES
1244
+
1245
+ #---------------------------------------------------------------------------
1246
+ # Configuration::additions related to the search engine
1247
+ #---------------------------------------------------------------------------
1248
+
1249
+ # The SEARCHENGINE tag specifies whether or not a search engine should be
1250
+ # used. If set to NO the values of all tags below this one will be ignored.
1251
+
1252
+ SEARCHENGINE = NO
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/configure.ac ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- Autoconf -*-
2
+ # Process this file with autoconf to produce a configure script.
3
+
4
+ AC_PREREQ(2.59)
5
+
6
+ AC_INIT([zookeeper C client],3.10.0,[user@zookeeper.apache.org],[zookeeper])
7
+ AC_CONFIG_SRCDIR([src/zookeeper.c])
8
+
9
+ # Save initial CFLAGS and CXXFLAGS values before AC_PROG_CC and AC_PROG_CXX
10
+ init_cflags="$CFLAGS"
11
+ init_cxxflags="$CXXFLAGS"
12
+
13
+ # initialize Doxygen support
14
+ DX_HTML_FEATURE(ON)
15
+ DX_CHM_FEATURE(OFF)
16
+ DX_CHI_FEATURE(OFF)
17
+ DX_MAN_FEATURE(OFF)
18
+ DX_RTF_FEATURE(OFF)
19
+ DX_XML_FEATURE(OFF)
20
+ DX_PDF_FEATURE(OFF)
21
+ DX_PS_FEATURE(OFF)
22
+ DX_INIT_DOXYGEN([zookeeper],[c-doc.Doxyfile],[docs])
23
+
24
+ # initialize automake
25
+ AM_INIT_AUTOMAKE([-Wall foreign])
26
+
27
+ AC_CONFIG_HEADER([config.h])
28
+
29
+ # Checks for programs.
30
+ AC_ARG_WITH(cppunit,
31
+ [ --without-cppunit do not use CPPUNIT])
32
+
33
+ if test "$with_cppunit" = "no" ; then
34
+ CPPUNIT_PATH="No_CPPUNIT"
35
+ CPPUNIT_INCLUDE=
36
+ CPPUNIT_LIBS=
37
+ else
38
+ CHECK_CPPUNIT(1.10.2)
39
+ fi
40
+
41
+ dnl OpenSSL
42
+ AC_ARG_WITH(openssl,
43
+ [AC_HELP_STRING([--with-openssl[=DIR]], [build with openssl (autodetect openssl library by default) )])],
44
+ [], [with_openssl=yes])
45
+ AC_MSG_NOTICE([configuring SSL using --with-openssl=$with_openssl])
46
+ saved_CPPFLAGS="$CPPFLAGS"
47
+ saved_LDFLAGS="$LDFLAGS"
48
+ if test "x$with_openssl" != "xno" && test "x$with_openssl" != "xyes" ; then
49
+ CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
50
+ LDFLAGS="$LDFLAGS -L$with_openssl/lib"
51
+ fi
52
+ have_openssl=no
53
+ AC_CHECK_HEADER(openssl/ssl.h, [ AC_CHECK_LIB(ssl, SSL_CTX_new, [have_openssl=yes]) ])
54
+ if test "x$with_openssl" != "xno" && test "x$with_openssl" != "xyes" && test "x$have_openssl" != "xyes"; then
55
+ CPPFLAGS="$saved_CPPFLAGS"
56
+ LDFLAGS="$saved_LDFLAGS"
57
+ fi
58
+ if test "x$with_openssl" != xno && test "x$have_openssl" = xno; then
59
+ AC_MSG_WARN([cannot build SSL support -- openssl not found])
60
+ with_openssl=no
61
+ fi
62
+ if test "x$with_openssl" != xno; then
63
+ AC_MSG_NOTICE([building with SSL support])
64
+ else
65
+ AC_MSG_NOTICE([building without SSL support])
66
+ fi
67
+ AM_CONDITIONAL([WANT_OPENSSL],[test "x$with_openssl" != xno])
68
+
69
+ if test "$CALLER" = "ANT" ; then
70
+ CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"${base_dir}/zookeeper-client/zookeeper-client-c/tests/zkServer.sh\\\"\""
71
+ else
72
+ CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"./tests/zkServer.sh\\\"\""
73
+ AC_CHECK_FILES([$srcdir/generated/zookeeper.jute.c $srcdir/generated/zookeeper.jute.h],[],
74
+ [AC_MSG_ERROR([jute files are missing! Please run "ant compile_jute" while in the zookeeper top level directory.])
75
+ ])
76
+ fi
77
+ AC_SUBST(CPPUNIT_CFLAGS)
78
+
79
+ AC_PROG_CC
80
+ AM_PROG_CC_C_O
81
+ AC_PROG_CXX
82
+ AC_PROG_INSTALL
83
+ AC_PROG_LN_S
84
+
85
+ # AC_DISABLE_SHARED
86
+ AC_PROG_LIBTOOL
87
+
88
+ #enable -D_GNU_SOURCE since the return code value of getaddrinfo
89
+ #ifdefed with __USE_GNU
90
+ #features.h header undef's __USE_GNU and defines it only if _GNU_SOURCE is defined
91
+ #hence this define for gcc
92
+ AC_ARG_ENABLE([debug],
93
+ [AS_HELP_STRING([--enable-debug],[enable debug build [default=no]])],
94
+ [],[enable_debug=no])
95
+
96
+ if test "x$enable_debug" = xyes; then
97
+ if test "x$init_cflags" = x; then
98
+ CFLAGS=""
99
+ fi
100
+ CFLAGS="$CFLAGS -g -O0 -D_GNU_SOURCE"
101
+ else
102
+ if test "x$init_cflags" = x; then
103
+ CFLAGS="-g -O2 -D_GNU_SOURCE"
104
+ fi
105
+ fi
106
+
107
+ if test "x$enable_debug" = xyes; then
108
+ if test "x$init_cxxflags" = x; then
109
+ CXXFLAGS=""
110
+ fi
111
+ CXXFLAGS="$CXXFLAGS -g -O0"
112
+ else
113
+ if test "x$init_cxxflags" = x; then
114
+ CXXFLAGS="-g -O2"
115
+ fi
116
+ fi
117
+
118
+ # Check whether to enable gcov (coverage test)
119
+ AC_ARG_ENABLE(gcov, [AS_HELP_STRING([--enable-gcov],[enable coverage test])])
120
+ AC_MSG_CHECKING([whether to enable gcov])
121
+ AS_IF([test "x${enable_gcov}" = "xyes"],AC_MSG_RESULT([yes]),AC_MSG_RESULT([no]))
122
+ AM_CONDITIONAL([ENABLEGCOV],[test "x${enable_gcov}" = "xyes"])
123
+
124
+
125
+ CXXFLAGS="$CXXFLAGS -std=c++11"
126
+
127
+ AC_ARG_WITH([syncapi],
128
+ [AS_HELP_STRING([--with-syncapi],[build with support for SyncAPI [default=yes]])],
129
+ [],[with_syncapi=yes])
130
+
131
+ # Checks for libraries.
132
+ AC_CHECK_LIB([pthread], [pthread_mutex_lock],[have_pthread=yes],[have_pthread=no])
133
+
134
+ if test "x$with_syncapi" != xno && test "x$have_pthread" = xno; then
135
+ AC_MSG_WARN([cannot build SyncAPI -- pthread not found])
136
+ with_syncapi=no
137
+ fi
138
+ if test "x$with_syncapi" != xno; then
139
+ AC_MSG_NOTICE([building with SyncAPI support])
140
+ else
141
+ AC_MSG_NOTICE([building without SyncAPI support])
142
+ fi
143
+
144
+ AM_CONDITIONAL([WANT_SYNCAPI],[test "x$with_syncapi" != xno])
145
+
146
+ dnl Cyrus SASL 2.x
147
+ AC_ARG_WITH(sasl,
148
+ [AC_HELP_STRING([--with-sasl[=DIR]], [build with SASL support via Cyrus SASL 2.x (default=auto)])],
149
+ [], [with_sasl=yes])
150
+ if test "x$with_sasl" != "xno"; then
151
+ saved_CPPFLAGS="$CPPFLAGS"
152
+ saved_LDFLAGS="$LDFLAGS"
153
+ if test "x$with_sasl" != "xyes" ; then
154
+ CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
155
+ LDFLAGS="$LDFLAGS -L$with_sasl/lib"
156
+ fi
157
+ have_sasl=no
158
+ AC_CHECK_HEADER(sasl/sasl.h, [
159
+ AC_CHECK_LIB(sasl2, sasl_client_init, [have_sasl=yes])])
160
+ if test "x$have_sasl" != "xyes"; then
161
+ CPPFLAGS="$saved_CPPFLAGS"
162
+ LDFLAGS="$saved_LDFLAGS"
163
+ fi
164
+ fi
165
+ if test "x$with_sasl" != xno && test "x$have_sasl" = xno; then
166
+ AC_MSG_WARN([cannot build SASL support -- sasl2 not found])
167
+ with_sasl=no
168
+ fi
169
+ if test "x$with_sasl" != xno; then
170
+ AC_MSG_NOTICE([building with SASL support])
171
+ else
172
+ AC_MSG_NOTICE([building without SASL support])
173
+ fi
174
+ AM_CONDITIONAL([WANT_SASL],[test "x$with_sasl" != xno])
175
+
176
+ # Checks for header files.
177
+ AC_HEADER_STDC
178
+ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h sys/utsname.h])
179
+
180
+ # Checks for typedefs, structures, and compiler characteristics.
181
+ AC_C_CONST
182
+ AC_C_INLINE
183
+ AC_HEADER_TIME
184
+ AC_CHECK_TYPE([nfds_t],
185
+ [AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[poll() second argument type])],
186
+ [AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[poll() second argument type])],
187
+ [#include <poll.h>])
188
+
189
+ AC_MSG_CHECKING([whether to enable ipv6])
190
+
191
+ AC_TRY_RUN([ /* is AF_INET6 available? */
192
+ #include <sys/types.h>
193
+ #include <sys/socket.h>
194
+ main()
195
+ {
196
+ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
197
+ exit(1);
198
+ else
199
+ exit(0);
200
+ }
201
+ ], AC_MSG_RESULT(yes)
202
+ ipv6=yes,
203
+ AC_MSG_RESULT(no)
204
+ ipv6=no,
205
+ AC_MSG_RESULT(no)
206
+ ipv6=no)
207
+
208
+ if test x"$ipv6" = xyes; then
209
+ USEIPV6="-DZOO_IPV6_ENABLED"
210
+ AC_SUBST(USEIPV6)
211
+ fi
212
+
213
+ # use SOCK_CLOEXEC if available and wanted
214
+ AC_ARG_WITH([sock_cloexec],
215
+ [AS_HELP_STRING([--with-sock-cloexec],[build with SOCK_CLOEXEC flag set on the connections])],
216
+ [],[with_sock_cloexec=no])
217
+
218
+ AC_MSG_CHECKING([whether SOCK_CLOEXEC is available])
219
+
220
+ AC_TRY_RUN([ /* is SOCK_CLOEXEC available ? */
221
+ #include <sys/types.h>
222
+ #include <sys/socket.h>
223
+ #include <stdlib.h>
224
+ main()
225
+ {
226
+ #ifdef SOCK_CLOEXEC
227
+ exit(0);
228
+ #else
229
+ exit(1);
230
+ #endif
231
+ }
232
+ ], AC_MSG_RESULT(yes)
233
+ has_sock_cloexec=yes,
234
+ AC_MSG_RESULT(no)
235
+ has_sock_cloexec=no,
236
+ AC_MSG_RESULT(no)
237
+ has_sock_cloexec=no)
238
+
239
+ if test "x$with_sock_cloexec" != xno && test "x$has_sock_cloexec" = xno; then
240
+ AC_MSG_WARN([cannot use SOCK_CLOEXEC -- SOCK_CLOEXEC undefined on this platform])
241
+ with_sock_cloexec=no
242
+ fi
243
+
244
+ if test "x$with_sock_cloexec" != xno; then
245
+ AC_MSG_NOTICE([building with SOCK_CLOEXEC])
246
+ else
247
+ AC_MSG_NOTICE([building without SOCK_CLOEXEC])
248
+ fi
249
+
250
+ AS_IF([test x"$with_sock_cloexec" != xno], [AC_DEFINE([SOCK_CLOEXEC_ENABLED], [1], [Define to 1, if SOCK_CLOEXEC is defined and wanted])])
251
+ AM_CONDITIONAL([SOCK_CLOEXEC_ENABLED],[test "x$with_sock_cloexec" != xno])
252
+
253
+ # Determine which libraries we need to use clock_gettime
254
+ saved_LIBS="$LIBS"
255
+ LIBS=""
256
+ AC_CHECK_LIB(rt, clock_gettime)
257
+ CLOCK_GETTIME_LIBS=$LIBS
258
+ AC_SUBST(CLOCK_GETTIME_LIBS)
259
+ LIBS="$saved_LIBS"
260
+
261
+ # Checks for library functions.
262
+ AC_CHECK_FUNCS([getcwd gethostbyname gethostname getlogin getpwuid_r gettimeofday getuid memmove memset poll socket strchr strdup strerror strtol])
263
+
264
+ AC_CONFIG_FILES([Makefile])
265
+ AC_CANONICAL_HOST
266
+ AM_CONDITIONAL([SOLARIS],[
267
+ case "$host_os" in
268
+ *solaris*)
269
+ true
270
+ ;;
271
+ *)
272
+ false
273
+ ;;
274
+ esac ])
275
+ AC_OUTPUT
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/proto.h ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef PROTO_H_
19
+ #define PROTO_H_
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ #define ZOO_NOTIFY_OP 0
26
+ #define ZOO_CREATE_OP 1
27
+ #define ZOO_DELETE_OP 2
28
+ #define ZOO_EXISTS_OP 3
29
+ #define ZOO_GETDATA_OP 4
30
+ #define ZOO_SETDATA_OP 5
31
+ #define ZOO_GETACL_OP 6
32
+ #define ZOO_SETACL_OP 7
33
+ #define ZOO_GETCHILDREN_OP 8
34
+ #define ZOO_SYNC_OP 9
35
+ #define ZOO_PING_OP 11
36
+ #define ZOO_GETCHILDREN2_OP 12
37
+ #define ZOO_CHECK_OP 13
38
+ #define ZOO_MULTI_OP 14
39
+ #define ZOO_CREATE2_OP 15
40
+ #define ZOO_RECONFIG_OP 16
41
+ #define ZOO_CHECK_WATCHES 17
42
+ #define ZOO_REMOVE_WATCHES 18
43
+ #define ZOO_CREATE_CONTAINER_OP 19
44
+ #define ZOO_DELETE_CONTAINER_OP 20
45
+ #define ZOO_CREATE_TTL_OP 21
46
+ #define ZOO_CLOSE_OP -11
47
+ #define ZOO_SETAUTH_OP 100
48
+ #define ZOO_SETWATCHES_OP 101
49
+ #define ZOO_SASL_OP 102
50
+
51
+ #ifdef __cplusplus
52
+ }
53
+ #endif
54
+
55
+ #endif /*PROTO_H_*/
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/recordio.h ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef __RECORDIO_H__
19
+ #define __RECORDIO_H__
20
+
21
+ #include <sys/types.h>
22
+ #include <stdint.h> /* for int64_t */
23
+ #ifdef WIN32
24
+ #include "winconfig.h"
25
+ #endif
26
+
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+
31
+ struct buffer {
32
+ int32_t len;
33
+ char *buff;
34
+ };
35
+
36
+ void deallocate_String(char **s);
37
+ void deallocate_Buffer(struct buffer *b);
38
+ void deallocate_vector(void *d);
39
+ struct iarchive {
40
+ int (*start_record)(struct iarchive *ia, const char *tag);
41
+ int (*end_record)(struct iarchive *ia, const char *tag);
42
+ int (*start_vector)(struct iarchive *ia, const char *tag, int32_t *count);
43
+ int (*end_vector)(struct iarchive *ia, const char *tag);
44
+ int (*deserialize_Bool)(struct iarchive *ia, const char *name, int32_t *);
45
+ int (*deserialize_Int)(struct iarchive *ia, const char *name, int32_t *);
46
+ int (*deserialize_Long)(struct iarchive *ia, const char *name, int64_t *);
47
+ int (*deserialize_Buffer)(struct iarchive *ia, const char *name,
48
+ struct buffer *);
49
+ int (*deserialize_String)(struct iarchive *ia, const char *name, char **);
50
+ void *priv;
51
+ };
52
+ struct oarchive {
53
+ int (*start_record)(struct oarchive *oa, const char *tag);
54
+ int (*end_record)(struct oarchive *oa, const char *tag);
55
+ int (*start_vector)(struct oarchive *oa, const char *tag, const int32_t *count);
56
+ int (*end_vector)(struct oarchive *oa, const char *tag);
57
+ int (*serialize_Bool)(struct oarchive *oa, const char *name, const int32_t *);
58
+ int (*serialize_Int)(struct oarchive *oa, const char *name, const int32_t *);
59
+ int (*serialize_Long)(struct oarchive *oa, const char *name,
60
+ const int64_t *);
61
+ int (*serialize_Buffer)(struct oarchive *oa, const char *name,
62
+ const struct buffer *);
63
+ int (*serialize_String)(struct oarchive *oa, const char *name, char **);
64
+ void *priv;
65
+ };
66
+
67
+ struct oarchive *create_buffer_oarchive(void);
68
+ void close_buffer_oarchive(struct oarchive **oa, int free_buffer);
69
+ struct iarchive *create_buffer_iarchive(char *buffer, int len);
70
+ void close_buffer_iarchive(struct iarchive **ia);
71
+ char *get_buffer(struct oarchive *);
72
+ int get_buffer_len(struct oarchive *);
73
+
74
+ int64_t zoo_htonll(int64_t v);
75
+
76
+ #ifdef __cplusplus
77
+ }
78
+ #endif
79
+
80
+ #endif
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/winconfig.h ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef WINCONFIG_H_
2
+ #define WINCONFIG_H_
3
+
4
+ /* Define to `__inline__' or `__inline' if that's what the C compiler
5
+ calls it, or to nothing if 'inline' is not supported under any name. */
6
+ #ifndef __cplusplus
7
+ #define inline __inline
8
+ #endif
9
+
10
+ #define __attribute__(x)
11
+ #define __func__ __FUNCTION__
12
+
13
+ #define ACL ZKACL /* Conflict with windows API */
14
+
15
+ #endif
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/zookeeper.h ADDED
The diff for this file is too large to render. See raw diff
 
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/include/zookeeper_version.h ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef ZOOKEEPER_VERSION_H_
19
+ #define ZOOKEEPER_VERSION_H_
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ #define ZOO_VERSION "3.10.0"
26
+
27
+ #ifdef __cplusplus
28
+ }
29
+ #endif
30
+
31
+ #endif /* ZOOKEEPER_VERSION_H_ */
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/pom.xml ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+ <!--
4
+ /**
5
+ * Licensed to the Apache Software Foundation (ASF) under one
6
+ * or more contributor license agreements. See the NOTICE file
7
+ * distributed with this work for additional information
8
+ * regarding copyright ownership. The ASF licenses this file
9
+ * to you under the Apache License, Version 2.0 (the
10
+ * "License"); you may not use this file except in compliance
11
+ * with the License. You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ -->
22
+ <modelVersion>4.0.0</modelVersion>
23
+ <parent>
24
+ <groupId>org.apache.zookeeper</groupId>
25
+ <artifactId>zookeeper-client</artifactId>
26
+ <version>3.10.0-SNAPSHOT</version>
27
+ </parent>
28
+
29
+ <artifactId>zookeeper-client-c</artifactId>
30
+ <packaging>pom</packaging>
31
+ <name>Apache ZooKeeper - Client - C</name>
32
+ <description>ZooKeeper c client</description>
33
+
34
+ <properties>
35
+ <c-test-coverage-arg> </c-test-coverage-arg>
36
+ </properties>
37
+
38
+ <build>
39
+ <plugins>
40
+ <plugin>
41
+ <groupId>org.codehaus.mojo</groupId>
42
+ <artifactId>exec-maven-plugin</artifactId>
43
+ <executions>
44
+ <execution>
45
+ <id>autoreconf</id>
46
+ <phase>process-sources</phase>
47
+ <goals>
48
+ <goal>exec</goal>
49
+ </goals>
50
+ <configuration>
51
+ <workingDirectory>${project.basedir}</workingDirectory>
52
+ <executable>autoreconf</executable>
53
+ <environmentVariables>
54
+ <ACLOCAL>aclocal -I /usr/share/aclocal</ACLOCAL>
55
+ </environmentVariables>
56
+ <arguments>
57
+ <argument>-if</argument>
58
+ </arguments>
59
+ </configuration>
60
+ </execution>
61
+ <execution>
62
+ <id>configure</id>
63
+ <phase>process-sources</phase>
64
+ <goals>
65
+ <goal>exec</goal>
66
+ </goals>
67
+ <configuration>
68
+ <workingDirectory>${project.build.directory}/c</workingDirectory>
69
+ <executable>${project.basedir}/configure</executable>
70
+ <environmentVariables>
71
+ <base_dir>${project.basedir}/../..</base_dir>
72
+ <CALLER>ANT</CALLER>
73
+ </environmentVariables>
74
+ <arguments>
75
+ <argument>--with-openssl=${c-client-openssl}</argument>
76
+ <argument>--with-sasl=${c-client-sasl}</argument>
77
+ <argument>--prefix=${project.build.directory}/c</argument>
78
+ <argument>${c-test-coverage-arg}</argument>
79
+ </arguments>
80
+ </configuration>
81
+ </execution>
82
+ </executions>
83
+ </plugin>
84
+ <plugin>
85
+ <groupId>org.apache.maven.plugins</groupId>
86
+ <artifactId>maven-antrun-plugin</artifactId>
87
+ <executions>
88
+ <execution>
89
+ <id>generate-sources</id>
90
+ <phase>generate-sources</phase>
91
+ <configuration>
92
+ <target>
93
+ <mkdir dir="target/c" />
94
+ </target>
95
+ </configuration>
96
+ <goals>
97
+ <goal>run</goal>
98
+ </goals>
99
+ </execution>
100
+ <execution>
101
+ <id>build-c-client</id>
102
+ <phase>compile</phase>
103
+ <configuration>
104
+ <target>
105
+ <exec dir="${basedir}/target/c" executable="make" failonerror="true">
106
+ <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH};/usr/lib" />
107
+ <env key="PATH" path="${env.PATH};${basedir};" />
108
+ <env key="CALLER" value="ANT" />
109
+ <env key="CLOVER_HOME" value="${basedir}/../../zookeeper-server/target" />
110
+ <env key="base_dir" value="${basedir}/../.." />
111
+ <arg line="clean install" />
112
+ </exec>
113
+ </target>
114
+ </configuration>
115
+ <goals>
116
+ <goal>run</goal>
117
+ </goals>
118
+ </execution>
119
+ <execution>
120
+ <id>replace-cclient-files-during-release</id>
121
+ <phase>none</phase>
122
+ <goals>
123
+ <goal>run</goal>
124
+ </goals>
125
+ <configuration>
126
+ <target>
127
+ <replaceregexp file="include/zookeeper_version.h" match="project.*" replace="project(zookeeper VERSION ${project.version})" byline="true" />
128
+ <replace file="include/zookeeper_version.h" value="">
129
+ <replaceToken>-SNAPSHOT</replaceToken>
130
+ </replace>
131
+ <replaceregexp file="CMakeLists.txt" match="project.*" replace="project(zookeeper VERSION ${project.version})" byline="true" />
132
+ <replace file="CMakeLists.txt" value="">
133
+ <replaceToken>-SNAPSHOT</replaceToken>
134
+ </replace>
135
+ <replaceregexp file="configure.ac" match="AC_INIT.*" replace="AC_INIT([zookeeper C client],${project.version},[user@zookeeper.apache.org],[zookeeper])" byline="true" />
136
+ <replace file="configure.ac" value="">
137
+ <replaceToken>-SNAPSHOT</replaceToken>
138
+ </replace>
139
+ </target>
140
+ </configuration>
141
+ </execution>
142
+ </executions>
143
+ </plugin>
144
+ </plugins>
145
+ </build>
146
+ <profiles>
147
+ <profile>
148
+ <id>c-test-coverage</id>
149
+ <properties>
150
+ <c-test-coverage-arg>--enable-gcov</c-test-coverage-arg>
151
+ </properties>
152
+ </profile>
153
+ <profile>
154
+ <!-- can be skipped by deactivating the profile with -P!cppunit (may need to escape or quote exclamation on command-line) -->
155
+ <id>cppunit</id>
156
+ <activation>
157
+ <property>
158
+ <!-- can also be skipped by -DskipCppUnit or with -DskipTests (see below) -->
159
+ <name>!skipCppUnit</name>
160
+ </property>
161
+ </activation>
162
+ <build>
163
+ <plugins>
164
+ <plugin>
165
+ <groupId>org.apache.maven.plugins</groupId>
166
+ <artifactId>maven-antrun-plugin</artifactId>
167
+ <executions>
168
+ <execution>
169
+ <id>test-cppunit</id>
170
+ <phase>test</phase>
171
+ <configuration>
172
+ <!-- do not run cpp tests if tests are globally skipped -->
173
+ <skip>${skipTests}</skip>
174
+ <target>
175
+ <exec dir="${basedir}/target/c" executable="make" failonerror="true">
176
+ <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH};/usr/lib" />
177
+ <env key="PATH" path="${env.PATH};${basedir};" />
178
+ <env key="CALLER" value="ANT" />
179
+ <env key="CLOVER_HOME" value="${basedir}/../../zookeeper-server/target" />
180
+ <env key="base_dir" value="${basedir}/../.." />
181
+ <arg line="check" />
182
+ </exec>
183
+ </target>
184
+ </configuration>
185
+ <goals>
186
+ <goal>run</goal>
187
+ </goals>
188
+ </execution>
189
+ </executions>
190
+ </plugin>
191
+ </plugins>
192
+ </build>
193
+ </profile>
194
+ </profiles>
195
+
196
+ </project>
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/CppAssertHelper.h ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #ifndef CPPASSERTHELPER_H_
20
+ #define CPPASSERTHELPER_H_
21
+
22
+ #include <cppunit/TestAssert.h>
23
+
24
+ // make it possible to specify location of the ASSERT call
25
+ #define CPPUNIT_ASSERT_EQUAL_LOC(expected,actual,file,line) \
26
+ ( CPPUNIT_NS::assertEquals( (expected), \
27
+ (actual), \
28
+ CPPUNIT_NS::SourceLine(file,line), \
29
+ "" ) )
30
+
31
+ #define CPPUNIT_ASSERT_EQUAL_MESSAGE_LOC(message,expected,actual,file,line) \
32
+ ( CPPUNIT_NS::assertEquals( (expected), \
33
+ (actual), \
34
+ CPPUNIT_NS::SourceLine(file,line), \
35
+ (message) ) )
36
+
37
+ #endif /*CPPASSERTHELPER_H_*/
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/LibCSymTable.cc ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #include "LibCSymTable.h"
20
+ #include <unistd.h> // needed for _POSIX_MONOTONIC_CLOCK
21
+
22
+ #define LOAD_SYM(sym) \
23
+ sym=(sym##_sig)dlsym(handle,#sym); \
24
+ assert("Unable to load "#sym" from libc"&&sym)
25
+
26
+
27
+ LibCSymTable& LibCSymTable::instance(){
28
+ static LibCSymTable tbl;
29
+ return tbl;
30
+ }
31
+
32
+ //******************************************************************************
33
+ // preload original libc symbols
34
+ LibCSymTable::LibCSymTable()
35
+ {
36
+ void* handle=getHandle();
37
+ LOAD_SYM(gethostbyname);
38
+ LOAD_SYM(calloc);
39
+ LOAD_SYM(realloc);
40
+ LOAD_SYM(free);
41
+ LOAD_SYM(random);
42
+ LOAD_SYM(srandom);
43
+ LOAD_SYM(printf);
44
+ LOAD_SYM(socket);
45
+ LOAD_SYM(close);
46
+ LOAD_SYM(getsockopt);
47
+ LOAD_SYM(setsockopt);
48
+ LOAD_SYM(fcntl);
49
+ LOAD_SYM(connect);
50
+ LOAD_SYM(send);
51
+ LOAD_SYM(recv);
52
+ LOAD_SYM(select);
53
+ LOAD_SYM(poll);
54
+ LOAD_SYM(gettimeofday);
55
+ #ifdef _POSIX_MONOTONIC_CLOCK
56
+ LOAD_SYM(clock_gettime);
57
+ #endif
58
+ #ifdef THREADED
59
+ LOAD_SYM(pthread_create);
60
+ LOAD_SYM(pthread_detach);
61
+ LOAD_SYM(pthread_cond_broadcast);
62
+ LOAD_SYM(pthread_cond_destroy);
63
+ LOAD_SYM(pthread_cond_init);
64
+ LOAD_SYM(pthread_cond_signal);
65
+ LOAD_SYM(pthread_cond_timedwait);
66
+ LOAD_SYM(pthread_cond_wait);
67
+ LOAD_SYM(pthread_join);
68
+ LOAD_SYM(pthread_mutex_destroy);
69
+ LOAD_SYM(pthread_mutex_init);
70
+ LOAD_SYM(pthread_mutex_lock);
71
+ LOAD_SYM(pthread_mutex_trylock);
72
+ LOAD_SYM(pthread_mutex_unlock);
73
+ #endif
74
+ }
75
+
76
+ void* LibCSymTable::getHandle(){
77
+ static void* handle=0;
78
+ if(!handle){
79
+ #ifdef __CYGWIN__
80
+ handle=dlopen("cygwin1.dll",RTLD_LAZY);
81
+ assert("Unable to dlopen global sym table"&&handle);
82
+ #else
83
+ handle=RTLD_NEXT;
84
+ #endif
85
+ }
86
+ return handle;
87
+ }
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/PthreadMocks.cc ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #include "PthreadMocks.h"
20
+
21
+ MockPthreadsBase* MockPthreadsBase::mock_=0;
22
+
23
+ #undef USING_DUMA
24
+
25
+ #ifndef USING_DUMA
26
+ int pthread_cond_broadcast (pthread_cond_t *c){
27
+ if(!MockPthreadsBase::mock_)
28
+ return LIBC_SYMBOLS.pthread_cond_broadcast(c);
29
+ return MockPthreadsBase::mock_->pthread_cond_broadcast(c);
30
+ }
31
+ int pthread_cond_destroy (pthread_cond_t *c){
32
+ if(!MockPthreadsBase::mock_)
33
+ return LIBC_SYMBOLS.pthread_cond_destroy(c);
34
+ return MockPthreadsBase::mock_->pthread_cond_destroy(c);
35
+ }
36
+ int pthread_cond_init (pthread_cond_t *c, const pthread_condattr_t *a){
37
+ if(!MockPthreadsBase::mock_)
38
+ return LIBC_SYMBOLS.pthread_cond_init(c,a);
39
+ return MockPthreadsBase::mock_->pthread_cond_init(c,a);
40
+ }
41
+ int pthread_cond_signal (pthread_cond_t *c){
42
+ if(!MockPthreadsBase::mock_)
43
+ return LIBC_SYMBOLS.pthread_cond_signal(c);
44
+ return MockPthreadsBase::mock_->pthread_cond_signal(c);
45
+ }
46
+ int pthread_cond_timedwait (pthread_cond_t *c,
47
+ pthread_mutex_t *m, const struct timespec *t){
48
+ if(!MockPthreadsBase::mock_)
49
+ return LIBC_SYMBOLS.pthread_cond_timedwait(c,m,t);
50
+ return MockPthreadsBase::mock_->pthread_cond_timedwait(c,m,t);
51
+ }
52
+ int pthread_cond_wait (pthread_cond_t *c, pthread_mutex_t *m){
53
+ if(!MockPthreadsBase::mock_)
54
+ return LIBC_SYMBOLS.pthread_cond_wait(c,m);
55
+ return MockPthreadsBase::mock_->pthread_cond_wait(c,m);
56
+ }
57
+ int pthread_create (pthread_t *t, const pthread_attr_t *a,
58
+ void *(*f)(void *), void *d){
59
+ if(!MockPthreadsBase::mock_)
60
+ return LIBC_SYMBOLS.pthread_create(t,a,f,d);
61
+ return MockPthreadsBase::mock_->pthread_create(t,a,f,d);
62
+ }
63
+ int pthread_detach(pthread_t t){
64
+ if(!MockPthreadsBase::mock_)
65
+ return LIBC_SYMBOLS.pthread_detach(t);
66
+ return MockPthreadsBase::mock_->pthread_detach(t);
67
+ }
68
+ int pthread_join (pthread_t t, void **r){
69
+ if(!MockPthreadsBase::mock_)
70
+ return LIBC_SYMBOLS.pthread_join(t,r);
71
+ return MockPthreadsBase::mock_->pthread_join(t,r);
72
+ }
73
+ int pthread_mutex_destroy (pthread_mutex_t *m){
74
+ if(!MockPthreadsBase::mock_)
75
+ return LIBC_SYMBOLS.pthread_mutex_destroy(m);
76
+ return MockPthreadsBase::mock_->pthread_mutex_destroy(m);
77
+ }
78
+ int pthread_mutex_init (pthread_mutex_t *m, const pthread_mutexattr_t *a){
79
+ if(!MockPthreadsBase::mock_)
80
+ return LIBC_SYMBOLS.pthread_mutex_init(m,a);
81
+ return MockPthreadsBase::mock_->pthread_mutex_init(m,a);
82
+ }
83
+
84
+ DECLARE_WRAPPER(int,pthread_mutex_lock,(pthread_mutex_t *m)){
85
+ if(!MockPthreadsBase::mock_)
86
+ return CALL_REAL(pthread_mutex_lock,(m));
87
+ return MockPthreadsBase::mock_->pthread_mutex_lock(m);
88
+ }
89
+
90
+ int pthread_mutex_trylock (pthread_mutex_t *m){
91
+ if(!MockPthreadsBase::mock_)
92
+ return LIBC_SYMBOLS.pthread_mutex_trylock(m);
93
+ return MockPthreadsBase::mock_->pthread_mutex_trylock(m);
94
+ }
95
+
96
+ DECLARE_WRAPPER(int,pthread_mutex_unlock,(pthread_mutex_t *m)){
97
+ if(!MockPthreadsBase::mock_)
98
+ return CALL_REAL(pthread_mutex_unlock,(m));
99
+ return MockPthreadsBase::mock_->pthread_mutex_unlock(m);
100
+ }
101
+ #endif
102
+
103
+ CheckedPthread::ThreadMap CheckedPthread::tmap_;
104
+ CheckedPthread::MutexMap CheckedPthread::mmap_;
105
+ CheckedPthread::CVMap CheckedPthread::cvmap_;
106
+ Mutex CheckedPthread::mx;
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/TestLogClientEnv.cc ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #include <cppunit/extensions/HelperMacros.h>
20
+ #include "CppAssertHelper.h"
21
+
22
+ #include <string.h>
23
+ #include <zookeeper.h>
24
+
25
+ class Zookeeper_logClientEnv : public CPPUNIT_NS::TestFixture {
26
+ CPPUNIT_TEST_SUITE(Zookeeper_logClientEnv);
27
+ CPPUNIT_TEST(testLogClientEnv);
28
+ CPPUNIT_TEST_SUITE_END();
29
+
30
+ static void log_no_clientenv(const char *message) {
31
+ CPPUNIT_ASSERT(::strstr(message, "Client environment") == NULL);
32
+ }
33
+
34
+ static void log_clientenv(const char *message) {
35
+ static int first;
36
+
37
+ if (!first) {
38
+ CPPUNIT_ASSERT(::strstr(message, "Client environment") != NULL);
39
+ first = 1;
40
+ }
41
+ }
42
+
43
+ public:
44
+
45
+ void testLogClientEnv() {
46
+ zhandle_t* zh;
47
+
48
+ zh = zookeeper_init2("localhost:22181", NULL, 0, NULL, NULL, 0, log_clientenv);
49
+ CPPUNIT_ASSERT(zh != 0);
50
+ zookeeper_close(zh);
51
+
52
+ zh = zookeeper_init2("localhost:22181", NULL, 0, NULL, NULL, ZOO_NO_LOG_CLIENTENV, log_no_clientenv);
53
+ CPPUNIT_ASSERT(zh != 0);
54
+ zookeeper_close(zh);
55
+ }
56
+ };
57
+
58
+ CPPUNIT_TEST_SUITE_REGISTRATION(Zookeeper_logClientEnv);
59
+
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/TestReadOnlyClient.cc ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #include <cppunit/extensions/HelperMacros.h>
20
+ #include "CppAssertHelper.h"
21
+
22
+ #include <sys/socket.h>
23
+ #include <unistd.h>
24
+
25
+ #include <zookeeper.h>
26
+
27
+ #include "Util.h"
28
+ #include "WatchUtil.h"
29
+
30
+ #ifdef THREADED
31
+ class Zookeeper_readOnly : public CPPUNIT_NS::TestFixture {
32
+ CPPUNIT_TEST_SUITE(Zookeeper_readOnly);
33
+ CPPUNIT_TEST(testReadOnly);
34
+ #ifdef HAVE_OPENSSL_H
35
+ CPPUNIT_TEST(testReadOnlyWithSSL);
36
+ #endif
37
+ CPPUNIT_TEST_SUITE_END();
38
+
39
+ static void watcher(zhandle_t* zh, int type, int state,
40
+ const char* path, void* v) {
41
+ watchctx_t *ctx = (watchctx_t*)v;
42
+
43
+ if (state==ZOO_CONNECTED_STATE || state==ZOO_READONLY_STATE) {
44
+ ctx->connected = true;
45
+ } else {
46
+ ctx->connected = false;
47
+ }
48
+ if (type != ZOO_SESSION_EVENT) {
49
+ evt_t evt;
50
+ evt.path = path;
51
+ evt.type = type;
52
+ ctx->putEvent(evt);
53
+ }
54
+ }
55
+
56
+ FILE *logfile;
57
+ public:
58
+
59
+ Zookeeper_readOnly() {
60
+ logfile = openlogfile("Zookeeper_readOnly");
61
+ }
62
+
63
+ ~Zookeeper_readOnly() {
64
+ if (logfile) {
65
+ fflush(logfile);
66
+ fclose(logfile);
67
+ logfile = 0;
68
+ }
69
+ }
70
+
71
+ void setUp() {
72
+ zoo_set_log_stream(logfile);
73
+ zoo_set_debug_level(ZOO_LOG_LEVEL_DEBUG);
74
+ stopServer();
75
+ }
76
+
77
+ void tearDown()
78
+ {
79
+ startServer();
80
+ }
81
+
82
+ void startServer() {
83
+ char cmd[1024];
84
+ sprintf(cmd, "%s start %s", ZKSERVER_CMD, "127.0.0.1:22181");
85
+ CPPUNIT_ASSERT(system(cmd) == 0);
86
+ }
87
+
88
+ void stopServer() {
89
+ char cmd[1024];
90
+ sprintf(cmd, "%s stop %s", ZKSERVER_CMD, "127.0.0.1:22181");
91
+ CPPUNIT_ASSERT(system(cmd) == 0);
92
+ }
93
+
94
+ void startReadOnly() {
95
+ char cmd[1024];
96
+ sprintf(cmd, "%s startCleanReadOnly", ZKSERVER_CMD);
97
+ CPPUNIT_ASSERT(system(cmd) == 0);
98
+ }
99
+
100
+ void stopPeer() {
101
+ char cmd[1024];
102
+ sprintf(cmd, "%s stop", ZKSERVER_CMD);
103
+ CPPUNIT_ASSERT(system(cmd) == 0);
104
+ }
105
+
106
+ zhandle_t* connectReadOnly(const char *address, watchctx_t *watch) {
107
+ zhandle_t* zh = zookeeper_init(address, watcher, 10000, NULL, watch, ZOO_READONLY);
108
+ watch->zh = zh;
109
+ CPPUNIT_ASSERT(zh != 0);
110
+ sleep(1);
111
+ return zh;
112
+ }
113
+
114
+ void assertCanRead(zhandle_t* zh, const char *znode_path) {
115
+ int len = 1024;
116
+ char buf[len];
117
+ int res = zoo_get(zh, znode_path, 0, buf, &len, 0);
118
+ CPPUNIT_ASSERT_EQUAL((int)ZOK, res);
119
+ }
120
+
121
+ void assertCanNotWrite(zhandle_t* zh, const char *znode_path) {
122
+ char path[1024];
123
+ char buf[1024];
124
+ int res = zoo_create(zh, znode_path, buf, 10, &ZOO_OPEN_ACL_UNSAFE, 0, path, 512);
125
+ CPPUNIT_ASSERT_EQUAL((int)ZNOTREADONLY, res);
126
+ }
127
+
128
+ void testReadOnly()
129
+ {
130
+ startReadOnly();
131
+
132
+ watchctx_t watch;
133
+ zhandle_t* zh = connectReadOnly("localhost:22181", &watch);
134
+
135
+ assertCanRead(zh, "/");
136
+
137
+ assertCanNotWrite(zh, "/test");
138
+
139
+ stopPeer();
140
+ }
141
+
142
+ #ifdef HAVE_OPENSSL_H
143
+
144
+ zhandle_t* connectReadOnlySSL(const char *address, const char *certs, watchctx_t *watch) {
145
+ zhandle_t* zh = zookeeper_init_ssl(address, certs, watcher, 10000, NULL, watch, ZOO_READONLY);
146
+ watch->zh = zh;
147
+ CPPUNIT_ASSERT(zh != 0);
148
+ sleep(1);
149
+ return zh;
150
+ }
151
+
152
+ void testReadOnlyWithSSL() {
153
+ startReadOnly();
154
+
155
+ watchctx_t watch;
156
+ zhandle_t* zh = connectReadOnlySSL("localhost:22281",
157
+ "/tmp/certs/server.crt,/tmp/certs/client.crt,/tmp/certs/clientkey.pem,password",
158
+ &watch);
159
+
160
+ assertCanRead(zh, "/");
161
+
162
+ assertCanNotWrite(zh, "/testSSL");
163
+
164
+ stopPeer();
165
+ }
166
+ #endif
167
+
168
+ };
169
+
170
+ CPPUNIT_TEST_SUITE_REGISTRATION(Zookeeper_readOnly);
171
+ #endif
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/Util.h ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ #ifndef UTIL_H_
20
+ #define UTIL_H_
21
+
22
+ #include <map>
23
+ #include <vector>
24
+ #include <string>
25
+
26
+ #include "zookeeper_log.h"
27
+
28
+ // number of elements in array
29
+ #define COUNTOF(array) sizeof(array)/sizeof(array[0])
30
+
31
+ #define DECLARE_WRAPPER(ret,sym,sig) \
32
+ extern "C" ret __real_##sym sig; \
33
+ extern "C" ret __wrap_##sym sig
34
+
35
+ #define CALL_REAL(sym,params) \
36
+ __real_##sym params
37
+
38
+ // must include "src/zookeeper_log.h" to be able to use this macro
39
+ #define TEST_TRACE(x...) \
40
+ log_message(LOGSTREAM, ZOO_LOG_LEVEL_DEBUG,__LINE__,__func__,x)
41
+
42
+ extern const std::string EMPTY_STRING;
43
+
44
+ // *****************************************************************************
45
+ // A bit of wizardry to get to the bare type from a reference or a pointer
46
+ // to the type
47
+ template <class T>
48
+ struct TypeOp {
49
+ typedef T BareT;
50
+ typedef T ArgT;
51
+ };
52
+
53
+ // partial specialization for reference types
54
+ template <class T>
55
+ struct TypeOp<T&>{
56
+ typedef T& ArgT;
57
+ typedef typename TypeOp<T>::BareT BareT;
58
+ };
59
+
60
+ // partial specialization for pointers
61
+ template <class T>
62
+ struct TypeOp<T*>{
63
+ typedef T* ArgT;
64
+ typedef typename TypeOp<T>::BareT BareT;
65
+ };
66
+
67
+ // *****************************************************************************
68
+ // Container utilities
69
+
70
+ template <class K, class V>
71
+ void putValue(std::map<K,V>& map,const K& k, const V& v){
72
+ typedef std::map<K,V> Map;
73
+ typename Map::const_iterator it=map.find(k);
74
+ if(it==map.end())
75
+ map.insert(typename Map::value_type(k,v));
76
+ else
77
+ map[k]=v;
78
+ }
79
+
80
+ template <class K, class V>
81
+ bool getValue(const std::map<K,V>& map,const K& k,V& v){
82
+ typedef std::map<K,V> Map;
83
+ typename Map::const_iterator it=map.find(k);
84
+ if(it==map.end())
85
+ return false;
86
+ v=it->second;
87
+ return true;
88
+ }
89
+
90
+ // *****************************************************************************
91
+ // misc utils
92
+
93
+ // millisecond sleep
94
+ void millisleep(int ms);
95
+ FILE *openlogfile(const char* name);
96
+ // evaluate given predicate until it returns true or the timeout
97
+ // (in millis) has expired
98
+ template<class Predicate>
99
+ int ensureCondition(const Predicate& p,int timeout){
100
+ int elapsed=0;
101
+ while(!p() && elapsed<timeout){
102
+ millisleep(2);
103
+ elapsed+=2;
104
+ }
105
+ return elapsed;
106
+ };
107
+
108
+ // *****************************************************************************
109
+ // test global configuration data
110
+ class TestConfig{
111
+ typedef std::vector<std::string> CmdLineOptList;
112
+ public:
113
+ typedef CmdLineOptList::const_iterator const_iterator;
114
+ TestConfig(){}
115
+ ~TestConfig(){}
116
+ void addConfigFromCmdLine(int argc, char* argv[]){
117
+ if(argc>=2)
118
+ testName_=argv[1];
119
+ for(int i=2; i<argc;++i)
120
+ cmdOpts_.push_back(argv[i]);
121
+ }
122
+ const_iterator getExtraOptBegin() const {return cmdOpts_.begin();}
123
+ const_iterator getExtraOptEnd() const {return cmdOpts_.end();}
124
+ size_t getExtraOptCount() const {
125
+ return cmdOpts_.size();
126
+ }
127
+ const std::string& getTestName() const {
128
+ return testName_=="all"?EMPTY_STRING:testName_;
129
+ }
130
+ private:
131
+ CmdLineOptList cmdOpts_;
132
+ std::string testName_;
133
+ };
134
+
135
+ extern TestConfig globalTestConfig;
136
+
137
+ #endif /*UTIL_H_*/
local-test-zookeeper-full-01/afc-zookeeper/zookeeper-client/zookeeper-client-c/tests/Vector.h ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ #ifndef _VECTOR_UTIL_H
19
+ #define _VECTOR_UTIL_H
20
+
21
+ #include <vector>
22
+
23
+ // function to conveniently stream vectors
24
+ template <class U>
25
+ std::ostream& operator<<(std::ostream& os,const std::vector<U>& c){
26
+ typedef std::vector<U> V;
27
+ os<<"[";
28
+ if(c.size()>0){
29
+ for(typename V::const_iterator it=c.begin();it!=c.end();++it)
30
+ os<<*it<<",";
31
+ os.seekp(-1,std::ios::cur);
32
+ }
33
+ os<<"]";
34
+ return os;
35
+ }
36
+
37
+ #endif // _VECTOR_UTIL_H