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/lib/messaging/messaging.h

    r414 r745  
    2222#define _MESSAGES_H_
    2323
     24#include "librpc/gen_ndr/server_id4.h"
     25
    2426struct messaging_context;
    2527
     
    3335#define MSG_PVFS_NOTIFY         7
    3436#define MSG_NTVFS_OPLOCK_BREAK  8
     37#define MSG_DREPL_ALLOCATE_RID  9
    3538
    3639/* temporary messaging endpoints are allocated above this line */
     
    4043#define SAMBA_PARENT_TASKID     0
    4144
     45typedef void (*msg_callback_t)(struct messaging_context *msg, void *private_data,
     46                               uint32_t msg_type,
     47                               struct server_id server_id, DATA_BLOB *data);
     48
     49NTSTATUS messaging_send(struct messaging_context *msg, struct server_id server,
     50                        uint32_t msg_type, const DATA_BLOB *data);
     51NTSTATUS messaging_register(struct messaging_context *msg, void *private_data,
     52                            uint32_t msg_type,
     53                            msg_callback_t fn);
     54NTSTATUS messaging_register_tmp(struct messaging_context *msg, void *private_data,
     55                                msg_callback_t fn, uint32_t *msg_type);
     56struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
     57                                         const char *dir,
     58                                         struct server_id server_id,
     59                                         struct tevent_context *ev);
     60struct messaging_context *messaging_client_init(TALLOC_CTX *mem_ctx,
     61                                         const char *dir,
     62                                         struct tevent_context *ev);
     63NTSTATUS messaging_send_ptr(struct messaging_context *msg, struct server_id server,
     64                            uint32_t msg_type, void *ptr);
     65void messaging_deregister(struct messaging_context *msg, uint32_t msg_type, void *private_data);
     66struct server_id messaging_get_server_id(struct messaging_context *msg_ctx);
     67
    4268#endif
Note: See TracChangeset for help on using the changeset viewer.