summaryrefslogtreecommitdiff
path: root/sql/winservice.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-01-30 22:42:02 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-01-30 22:42:02 +0100
commit1b28a0883dc02946384843af281e968913b4ed1e (patch)
tree034edc27b519882eed8638b4a665b6b70a88b80c /sql/winservice.h
parent366ee3c791ca6b5e7688a5138dfe347860772d2a (diff)
downloadmariadb-git-1b28a0883dc02946384843af281e968913b4ed1e.tar.gz
split long lines, use get_mysql_service_properties()
Diffstat (limited to 'sql/winservice.h')
-rw-r--r--sql/winservice.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/sql/winservice.h b/sql/winservice.h
new file mode 100644
index 00000000000..8957413783f
--- /dev/null
+++ b/sql/winservice.h
@@ -0,0 +1,24 @@
+/*
+ Extract properties of a windows service binary path
+*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <windows.h>
+typedef struct mysqld_service_properties_st
+{
+ char mysqld_exe[MAX_PATH];
+ char inifile[MAX_PATH];
+ char datadir[MAX_PATH];
+ int version_major;
+ int version_minor;
+ int version_patch;
+} mysqld_service_properties;
+
+extern int get_mysql_service_properties(const wchar_t *bin_path,
+ mysqld_service_properties *props);
+
+#ifdef __cplusplus
+}
+#endif