summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-06-28 07:41:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:48 -0500
commitd4ae6ae74d712b74800e360590052d318d2fd101 (patch)
tree501cd87429114ba59612ffa9633117a5f40fc83c /source4/smbd
parentf18fa1dfdbd1ca2d721d146522c7efdfae638e7f (diff)
downloadsamba-d4ae6ae74d712b74800e360590052d318d2fd101.tar.gz
samba-d4ae6ae74d712b74800e360590052d318d2fd101.tar.bz2
samba-d4ae6ae74d712b74800e360590052d318d2fd101.zip
r1277: rename struct server_context to smbsrv_ontext
because I need server_context fot the generic server infastructure metze (This used to be commit 0712f9f30797e65362c99423c0cf158a2f539000)
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_model.c2
-rw-r--r--source4/smbd/process_model.h4
-rw-r--r--source4/smbd/process_single.c6
-rw-r--r--source4/smbd/process_standard.c6
-rw-r--r--source4/smbd/process_thread.c4
-rw-r--r--source4/smbd/rewrite.c2
6 files changed, 12 insertions, 12 deletions
diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c
index 1947b37dc3..b098e740ca 100644
--- a/source4/smbd/process_model.c
+++ b/source4/smbd/process_model.c
@@ -110,7 +110,7 @@ const struct process_model_critical_sizes *process_model_version(void)
static const struct process_model_critical_sizes critical_sizes = {
PROCESS_MODEL_VERSION,
sizeof(struct model_ops),
- sizeof(struct server_context),
+ sizeof(struct smbsrv_context),
sizeof(struct event_context),
sizeof(struct fd_event)
};
diff --git a/source4/smbd/process_model.h b/source4/smbd/process_model.h
index f56635e62c..b605892598 100644
--- a/source4/smbd/process_model.h
+++ b/source4/smbd/process_model.h
@@ -45,13 +45,13 @@ struct model_ops {
void (*accept_rpc_connection)(struct event_context *, struct fd_event *, time_t, uint16_t);
/* function to terminate a connection */
- void (*terminate_connection)(struct server_context *smb, const char *reason);
+ void (*terminate_connection)(struct smbsrv_context *smb, const char *reason);
/* function to terminate a connection */
void (*terminate_rpc_connection)(void *r, const char *reason);
/* function to exit server */
- void (*exit_server)(struct server_context *smb, const char *reason);
+ void (*exit_server)(struct smbsrv_context *smb, const char *reason);
/* returns process or thread id */
int (*get_id)(struct request_context *req);
diff --git a/source4/smbd/process_single.c b/source4/smbd/process_single.c
index ac0d9fc6f9..620c436380 100644
--- a/source4/smbd/process_single.c
+++ b/source4/smbd/process_single.c
@@ -76,7 +76,7 @@ static void accept_rpc_connection(struct event_context *ev, struct fd_event *fde
}
/* called when a SMB connection goes down */
-static void terminate_connection(struct server_context *server, const char *reason)
+static void terminate_connection(struct smbsrv_context *server, const char *reason)
{
server_terminate(server);
}
@@ -89,10 +89,10 @@ static void terminate_rpc_connection(void *r, const char *reason)
static int get_id(struct request_context *req)
{
- return (int)req->smb->pid;
+ return (int)req->smb_ctx->pid;
}
-static void single_exit_server(struct server_context *smb, const char *reason)
+static void single_exit_server(struct smbsrv_context *smb, const char *reason)
{
DEBUG(1,("single_exit_server: reason[%s]\n",reason));
}
diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c
index bf21e21157..b3a69c7295 100644
--- a/source4/smbd/process_standard.c
+++ b/source4/smbd/process_standard.c
@@ -115,7 +115,7 @@ static void accept_rpc_connection(struct event_context *ev, struct fd_event *fde
}
/* called when a SMB connection goes down */
-static void terminate_connection(struct server_context *server, const char *reason)
+static void terminate_connection(struct smbsrv_context *server, const char *reason)
{
server_terminate(server);
/* terminate this process */
@@ -132,10 +132,10 @@ static void terminate_rpc_connection(void *r, const char *reason)
static int get_id(struct request_context *req)
{
- return (int)req->smb->pid;
+ return (int)req->smb_ctx->pid;
}
-static void standard_exit_server(struct server_context *smb, const char *reason)
+static void standard_exit_server(struct smbsrv_context *smb, const char *reason)
{
DEBUG(1,("standard_exit_server: reason[%s]\n",reason));
}
diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c
index 5bf18e34d2..bd63749f8e 100644
--- a/source4/smbd/process_thread.c
+++ b/source4/smbd/process_thread.c
@@ -126,7 +126,7 @@ static void accept_rpc_connection(struct event_context *ev, struct fd_event *fde
}
/* called when a SMB connection goes down */
-static void terminate_connection(struct server_context *server, const char *reason)
+static void terminate_connection(struct smbsrv_context *server, const char *reason)
{
server_terminate(server);
@@ -465,7 +465,7 @@ static void model_startup(void)
register_debug_handlers("thread", &d_ops);
}
-static void thread_exit_server(struct server_context *smb, const char *reason)
+static void thread_exit_server(struct smbsrv_context *smb, const char *reason)
{
DEBUG(1,("thread_exit_server: reason[%s]\n",reason));
}
diff --git a/source4/smbd/rewrite.c b/source4/smbd/rewrite.c
index 2250c5cc27..fb4fd93c2c 100644
--- a/source4/smbd/rewrite.c
+++ b/source4/smbd/rewrite.c
@@ -96,7 +96,7 @@ void init_subsystems(void)
/****************************************************************************
Reload the services file.
**************************************************************************/
-BOOL reload_services(struct server_context *smb, BOOL test)
+BOOL reload_services(struct smbsrv_context *smb, BOOL test)
{
BOOL ret;