dovecot-2.0: lib-master: Added master_service_get_name().
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 1 03:10:10 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/84f96a722fcc
changeset: 9413:84f96a722fcc
user: Timo Sirainen <tss at iki.fi>
date: Sun May 31 20:07:52 2009 -0400
description:
lib-master: Added master_service_get_name().
diffstat:
2 files changed, 7 insertions(+)
src/lib-master/master-service.c | 5 +++++
src/lib-master/master-service.h | 2 ++
diffs (27 lines):
diff -r 1da29762c407 -r 84f96a722fcc src/lib-master/master-service.c
--- a/src/lib-master/master-service.c Sun May 31 19:48:46 2009 -0400
+++ b/src/lib-master/master-service.c Sun May 31 20:07:52 2009 -0400
@@ -362,6 +362,11 @@ const char *master_service_get_version_s
const char *master_service_get_version_string(struct master_service *service)
{
return service->version_string;
+}
+
+const char *master_service_get_name(struct master_service *service)
+{
+ return service->name;
}
void master_service_run(struct master_service *service,
diff -r 1da29762c407 -r 84f96a722fcc src/lib-master/master-service.h
--- a/src/lib-master/master-service.h Sun May 31 19:48:46 2009 -0400
+++ b/src/lib-master/master-service.h Sun May 31 20:07:52 2009 -0400
@@ -72,6 +72,8 @@ const char *master_service_get_config_pa
/* Returns PACKAGE_VERSION or NULL if version_ignore=yes. This function is
useful mostly as parameter to module_dir_load(). */
const char *master_service_get_version_string(struct master_service *service);
+/* Returns name of the service, as given in name parameter to _init(). */
+const char *master_service_get_name(struct master_service *service);
/* Start the service. Blocks until finished */
void master_service_run(struct master_service *service,
More information about the dovecot-cvs
mailing list