Skip to content

Commit

Permalink
lib: Remove unused serverid.tdb
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>

Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Tue Dec  5 04:58:26 CET 2017 on sn-devel-144
  • Loading branch information
vlendec authored and jrasamba committed Dec 5, 2017
1 parent 6423ca4 commit 41cfc73
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 550 deletions.
49 changes: 0 additions & 49 deletions source3/include/serverid.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,60 +21,11 @@
#define __SERVERID_H__

#include "replace.h"
#include "lib/dbwrap/dbwrap.h"
#include "librpc/gen_ndr/server_id.h"

/* Flags to classify messages - used in message_send_all() */
/* Sender will filter by flag. */

#define FLAG_MSG_GENERAL 0x0001
#define FLAG_MSG_SMBD 0x0002
#define FLAG_MSG_NMBD 0x0004
#define FLAG_MSG_WINBIND 0x0008
#define FLAG_MSG_PRINT_GENERAL 0x0010
/* dbwrap messages 4001-4999 */
#define FLAG_MSG_DBWRAP 0x0020

/*
* Register a server with its unique id
*/
bool serverid_register(const struct server_id id, uint32_t msg_flags);

/*
* De-register a server with its unique id
*/
bool serverid_deregister(const struct server_id id);

/*
* Check existence of a server id
*/
bool serverid_exists(const struct server_id *id);

/*
* Walk the list of server_ids registered
*/
bool serverid_traverse(int (*fn)(struct db_record *rec,
const struct server_id *id,
uint32_t msg_flags,
void *private_data),
void *private_data);

/*
* Walk the list of server_ids registered read-only
*/
bool serverid_traverse_read(int (*fn)(const struct server_id *id,
uint32_t msg_flags,
void *private_data),
void *private_data);
/*
* Ensure CLEAR_IF_FIRST works fine, to be called from the parent smbd
*/
bool serverid_parent_init(TALLOC_CTX *mem_ctx);

struct messaging_context;

bool message_send_all(struct messaging_context *msg_ctx,
int msg_type,
const void *buf, size_t len);

#endif
Loading

0 comments on commit 41cfc73

Please sign in to comment.