~ubuntu-branches/ubuntu/maverick/slony1/maverick

« back to all changes in this revision

Viewing changes to src/slonik/slonik.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2006-11-17 17:19:48 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061117171948-jd89seng1dcff6rc
Tags: 1.2.1-1
* New upstream release
  - Updated no-client-log.patch
  - Obsoleted patches: hardcoded-paths.patch
* Updated watch file
* Reenabled Perl tools
* Added missing final newline to slon.conf-sample
* Updated test script

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *      Copyright (c) 2003-2004, PostgreSQL Global Development Group
7
7
 *      Author: Jan Wieck, Afilias USA INC.
8
8
 *
9
 
 *      $Id: slonik.h,v 1.27 2006/03/08 18:29:10 darcyb Exp $
 
9
 *      $Id: slonik.h,v 1.27.2.2 2006/10/31 22:03:40 cbbrowne Exp $
10
10
 *-------------------------------------------------------------------------
11
11
 */
12
12
 
49
49
typedef struct SlonikStmt_update_functions_s SlonikStmt_update_functions;
50
50
typedef struct SlonikStmt_wait_event_s SlonikStmt_wait_event;
51
51
typedef struct SlonikStmt_switch_log_s SlonikStmt_switch_log;
 
52
typedef struct SlonikStmt_sync_s SlonikStmt_sync;
 
53
typedef struct SlonikStmt_sleep_s SlonikStmt_sleep;
52
54
 
53
55
typedef enum
54
56
{
87
89
        STMT_UPDATE_FUNCTIONS,
88
90
        STMT_WAIT_EVENT,
89
91
        STMT_SWITCH_LOG,
90
 
        STMT_ERROR
 
92
        STMT_ERROR,
 
93
        STMT_SYNC,
 
94
        STMT_SLEEP
91
95
}       Slonik_stmttype;
92
96
 
93
97
struct SlonikScript_s
431
435
};
432
436
 
433
437
 
 
438
struct SlonikStmt_sync_s
 
439
{
 
440
        SlonikStmt      hdr;
 
441
        int                     no_id;
 
442
};
 
443
 
 
444
struct SlonikStmt_sleep_s
 
445
{
 
446
        SlonikStmt      hdr;
 
447
        int                     num_secs;
 
448
};
 
449
 
 
450
 
434
451
 
435
452
 
436
453
extern SlonikScript *parser_script;
553
570
extern int      slonik_update_functions(SlonikStmt_update_functions * stmt);
554
571
extern int      slonik_wait_event(SlonikStmt_wait_event * stmt);
555
572
extern int      slonik_switch_log(SlonikStmt_switch_log * stmt);
 
573
extern int      slonik_sync(SlonikStmt_sync * stmt);
 
574
extern int      slonik_sleep(SlonikStmt_sleep * stmt);
556
575
 
557
576
extern int      slon_scanint64(char *str, int64 * result);
558
577