Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/libcli/wrepl/winsrepl.h

    r414 r745  
    55
    66   Copyright (C) Andrew Tridgell 2005
     7   Copyright (C) Stefan Metzmacher 2005-2010
    78
    89   This program is free software; you can redistribute it and/or modify
     
    2324#include "librpc/gen_ndr/winsrepl.h"
    2425
    25 /*
    26   main context structure for the wins replication client library
    27 */
    28 struct wrepl_socket {
    29         struct socket_context *sock;
    30         struct packet_context *packet;
    31 
    32         struct {
    33                 struct tevent_context *ctx;
    34                 struct tevent_fd *fde;
    35         } event;
    36 
    37         /* a queue of replies waiting to be received */
    38         struct wrepl_request *recv_queue;
    39 
    40         /* the default timeout for requests, 0 means no timeout */
    41 #define WREPL_SOCKET_REQUEST_TIMEOUT    (60)
    42         uint32_t request_timeout;
    43 
    44         /* counter for request timeouts, after 2 timeouts the socket is marked as dead */
    45         uint32_t timeout_count;
    46 
    47         /* remember is the socket is dead */
    48         bool dead;
    49 
    50         /* remember if we need to free the wrepl_socket at the end of wrepl_socket_dead() */
    51         bool free_skipped;
    52 
    53         struct smb_iconv_convenience *iconv_convenience;
    54 };
     26struct wrepl_request;
     27struct wrepl_socket;
    5528
    5629struct wrepl_send_ctrl {
     
    5831        bool disconnect_after_send;
    5932};
    60 
    61 enum wrepl_request_state {
    62         WREPL_REQUEST_INIT  = 0,
    63         WREPL_REQUEST_RECV  = 1,
    64         WREPL_REQUEST_DONE  = 2,
    65         WREPL_REQUEST_ERROR = 3
    66 };
    67 
    68 /*
    69   a WINS replication request
    70 */
    71 struct wrepl_request {
    72         struct wrepl_request *next, *prev;
    73         struct wrepl_socket *wrepl_socket;
    74 
    75         enum wrepl_request_state state;
    76         bool trigger;
    77         NTSTATUS status;
    78 
    79         struct tevent_timer *te;
    80 
    81         struct wrepl_packet *packet;
    82 
    83         struct {
    84                 void (*fn)(struct wrepl_request *);
    85                 void *private_data;
    86         } async;
    87 };
    88 
    8933
    9034/*
     
    13074         (is_static ? WREPL_FLAGS_IS_STATIC : 0))
    13175
     76struct wrepl_address {
     77        const char *owner;
     78        const char *address;
     79};
     80
     81struct wrepl_name {
     82        struct nbt_name name;
     83        enum wrepl_name_type type;
     84        enum wrepl_name_state state;
     85        enum wrepl_name_node node;
     86        bool is_static;
     87        uint32_t raw_flags;
     88        uint64_t version_id;
     89        const char *owner;
     90        uint32_t num_addresses;
     91        struct wrepl_address *addresses;
     92};
     93
    13294/*
    13395  a full pull replication
     
    140102        struct {
    141103                uint32_t num_names;
    142                 struct wrepl_name {
    143                         struct nbt_name name;
    144                         enum wrepl_name_type type;
    145                         enum wrepl_name_state state;
    146                         enum wrepl_name_node node;
    147                         bool is_static;
    148                         uint32_t raw_flags;
    149                         uint64_t version_id;
    150                         const char *owner;
    151                         uint32_t num_addresses;
    152                         struct wrepl_address {
    153                                 const char *owner;
    154                                 const char *address;
    155                         } *addresses;
    156                 } *names;
     104                struct wrepl_name *names;
    157105        } out;
    158106};
    159107
    160 struct resolve_context;
     108struct tstream_context;
    161109
    162110#include "libcli/wrepl/winsrepl_proto.h"
Note: See TracChangeset for help on using the changeset viewer.