diff options
author | Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in> | 2014-04-11 11:47:35 +0530 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-14 09:40:30 -0700 |
commit | 3abcde9a2abade0ce576976b6dce869e8aa28601 (patch) | |
tree | 883ee747d3fd09c0359976b667ee8da5954b73cd /dive.h | |
parent | ad9eb73d73b0200150d34807616ebcc8dd2a4b4f (diff) | |
download | subsurface-3abcde9a2abade0ce576976b6dce869e8aa28601.tar.gz |
Add option to save userid in data files
The userid of Subsurface Webservice can be included in locally saved xml
files and git repository.
For xml files, it is stored in userid tag. For git repo, it is stored
in 00-Subsurface file present in the repo.
Preference dialog and webservice dialog modified to include option
for saving userid locally.
In case of difference in default userid and userid in local file,
some semantics are followed. These can be referred to here:
http://lists.hohndel.org/pipermail/subsurface/2014-April/011422.html
Fixes #473
Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -887,6 +887,12 @@ extern double strtod_flags(const char *str, const char **ptr, unsigned int flags #define ascii_strtod(str, ptr) strtod_flags(str, ptr, STRTOD_ASCII) +extern short save_userid_local; +extern char* userid; + +extern void set_save_userid_local(short value); +extern void set_userid(char* user_id); + #ifdef __cplusplus } #endif |