Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/cluster/cluster.h

    r740 r988  
    2323#define __CLUSTER_H__
    2424
    25 #include "librpc/gen_ndr/server_id4.h"
     25#include "librpc/gen_ndr/server_id.h"
    2626
    2727/*
    2828  test for same cluster id
    2929*/
    30 #define cluster_id_equal(id_1, id_2) ((id_1)->id == (id_2)->id \
    31                                     && (id_1)->id2 == (id_2)->id2 \
    32                                     && (id_1)->node == (id_2)->node)
     30#define cluster_id_equal(id_1, id_2) ((id_1)->pid == (id_2)->pid \
     31                                    && (id_1)->task_id == (id_2)->task_id \
     32                                    && (id_1)->vnn == (id_2)->vnn)
    3333
    3434/*
    3535  test for same cluster node
    3636*/
    37 #define cluster_node_equal(id1, id2) ((id1)->node == (id2)->node)
     37#define cluster_node_equal(id1, id2) ((id1)->vnn == (id2)->vnn)
    3838
    39 struct messaging_context;
    40 typedef void (*cluster_message_fn_t)(struct messaging_context *, DATA_BLOB);
     39struct imessaging_context;
     40typedef void (*cluster_message_fn_t)(struct imessaging_context *, DATA_BLOB);
    4141
    4242/* prototypes */
    43 struct server_id cluster_id(uint64_t id, uint32_t id2);
    44 const char *cluster_id_string(TALLOC_CTX *mem_ctx, struct server_id id);
    45 struct tdb_wrap *cluster_tdb_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbname, int flags);
     43struct server_id cluster_id(uint64_t id, uint32_t task_id);
     44struct db_context *cluster_db_tmp_open(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, const char *dbbase, int flags);
    4645void *cluster_backend_handle(void);
    4746
    48 NTSTATUS cluster_message_init(struct messaging_context *msg, struct server_id server,
     47NTSTATUS cluster_message_init(struct imessaging_context *msg, struct server_id server,
    4948                              cluster_message_fn_t handler);
    5049NTSTATUS cluster_message_send(struct server_id server, DATA_BLOB *data);
Note: See TracChangeset for help on using the changeset viewer.