cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Cvs-cvs] Changes to ccvs/src/sign.h [signed-commits2]


From: Derek Robert Price
Subject: [Cvs-cvs] Changes to ccvs/src/sign.h [signed-commits2]
Date: Thu, 20 Oct 2005 17:34:21 -0400

Index: ccvs/src/sign.h
diff -u /dev/null ccvs/src/sign.h:1.1.4.1
--- /dev/null   Thu Oct 20 21:34:21 2005
+++ ccvs/src/sign.h     Thu Oct 20 21:33:12 2005
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2005 The Free Software Foundation, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef SIGN_H
+#define SIGN_H
+
+#include <stdbool.h>
+#include <stddef.h>
+
+/* Get List.  */
+#include "hash.h"
+
+
+
+typedef enum { SIGN_DEFAULT, SIGN_ALWAYS, SIGN_NEVER } sign_state;
+
+
+
+/* Set values to override current_parsed_root.  */
+void set_sign_commits (sign_state sign);
+void set_sign_template (const char *template);
+void set_sign_textmode (const char *textmode);
+void add_sign_arg (const char *arg);
+
+/* Get values.  */
+bool get_sign_commits (bool server_active, bool server_support);
+char *gen_signature (const char *srepos, const char *filename, bool bin,
+                    size_t *len);
+char *get_signature (bool server_active, const char *srepos,
+                    const char *filename, bool bin, size_t *len);
+
+/* Other utilities.  */
+bool have_sigfile (bool server_active, const char *fn);
+char *get_sigfile_name (const char *fn);
+#endif /* SIGN_H */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]