diff scid/scid.h @ 44:576f4b1ec79f

scid: implement API authentication
author David Demelier <markand@malikania.fr>
date Thu, 11 Aug 2022 21:24:07 +0200
parents 1d0ddf9e6efd
children 85c59fbf1407
line wrap: on
line diff
--- a/scid/scid.h	Thu Aug 11 11:34:32 2022 +0200
+++ b/scid/scid.h	Thu Aug 11 21:24:07 2022 +0200
@@ -28,6 +28,8 @@
 
 #include <limits.h>
 
+#define SCID_API_KEY_MAX (40 + 1)
+
 /**
  * \struct scid
  * \brief Main scid structure for configuration.
@@ -35,6 +37,7 @@
 extern struct scid {
 	char themedir[PATH_MAX];        /*!< Path to the theme. */
 	char dbpath[PATH_MAX];          /*!< Path to the database file. */
+	char apikey[SCID_API_KEY_MAX];  /*!< Maximum API key with NUL terminator. */
 } scid /*! Global variable. */;
 
 /**