]> andersk Git - moira.git/blobdiff - include/update.h
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / include / update.h
index 7a7690f5a4795f37684bd481be8e952c2ae6848b..1f07c136de2eba85d5b982e7038a230fda45e282 100644 (file)
@@ -1,18 +1,3 @@
-/*
- * Update mechanism description structure.
- */
-struct update_desc {
-     int last_time;            /* when did we try last? */
-     int success;              /* did it succeed? */
-     int interval;             /* interval in minutes between updates */
-     char *service_name;
-     char *host_name;
-     char *target_path;                /* where to put the file */
-     int override;             /* override interval */
-     int enable;               /* can we update at all? */
-     char *instructions;       /* script pathname */
-};
-
 #define log_DEBUG 0
 #define log_INFO  1
 #define log_WARNING 2
@@ -20,3 +5,11 @@ struct update_desc {
 
 #define SERVICE_NAME "moira_update"
 #define        UPDATE_BUFSIZ   BUFSIZ
+
+int send_file(char *pathname, char *target_path, int encrypt);
+int send_auth(char *hostname);
+int execute(char *path);
+void send_quit(void);
+
+#include <krb.h>
+int get_mr_update_ticket(char *host, KTEXT ticket);
This page took 0.025245 seconds and 4 git commands to generate.