~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/examples_c/ex_repquote/ex_repquote.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-
2
 
 * See the file LICENSE for redistribution information.
3
 
 *
4
 
 * Copyright (c) 2001-2002
5
 
 *      Sleepycat Software.  All rights reserved.
6
 
 *
7
 
 * $Id$
8
 
 */
9
 
 
10
 
#ifndef _EX_REPQUOTE_H_
11
 
#define _EX_REPQUOTE_H_
12
 
 
13
 
#define SELF_EID        1
14
 
 
15
 
typedef struct {
16
 
        char *host;             /* Host name. */
17
 
        u_int32_t port;         /* Port on which to connect to this site. */
18
 
} repsite_t;
19
 
 
20
 
/* Globals */
21
 
extern int master_eid;
22
 
extern char *myaddr;
23
 
 
24
 
struct __member;        typedef struct __member member_t;
25
 
struct __machtab;       typedef struct __machtab machtab_t;
26
 
 
27
 
/* Arguments for the connect_all thread. */
28
 
typedef struct {
29
 
        DB_ENV *dbenv;
30
 
        const char *progname;
31
 
        const char *home;
32
 
        machtab_t *machtab;
33
 
        repsite_t *sites;
34
 
        int nsites;
35
 
} all_args;
36
 
 
37
 
/* Arguments for the connect_loop thread. */
38
 
typedef struct {
39
 
        DB_ENV *dbenv;
40
 
        const char * home;
41
 
        const char * progname;
42
 
        machtab_t *machtab;
43
 
        int port;
44
 
} connect_args;
45
 
 
46
 
#define CACHESIZE       (10 * 1024 * 1024)
47
 
#define DATABASE        "quote.db"
48
 
#define SLEEPTIME       3
49
 
 
50
 
void *connect_all __P((void *args));
51
 
void *connect_thread __P((void *args));
52
 
int doclient __P((DB_ENV *, const char *, machtab_t *));
53
 
int domaster __P((DB_ENV *, const char *));
54
 
int get_accepted_socket __P((const char *, int));
55
 
int get_connected_socket __P((machtab_t *, const char *, const char *, int, int *, int *));
56
 
int get_next_message __P((int, DBT *, DBT *));
57
 
int listen_socket_init __P((const char *, int));
58
 
int listen_socket_accept __P((machtab_t *, const char *, int, int *));
59
 
int machtab_getinfo __P((machtab_t *, int, u_int32_t *, int *));
60
 
int machtab_init __P((machtab_t **, int, int));
61
 
void machtab_parm __P((machtab_t *, int *, int *, u_int32_t *));
62
 
int machtab_rem __P((machtab_t *, int, int));
63
 
int quote_send __P((DB_ENV *, const DBT *, const DBT *, int, u_int32_t));
64
 
 
65
 
#ifndef COMPQUIET
66
 
#define COMPQUIET(x,y)  x = (y)
67
 
#endif
68
 
 
69
 
#endif /* !_EX_REPQUOTE_H_ */