10d24a04f2cc45af8484f29d35899bec2e53db46 jcasper Fri May 27 16:29:24 2016 -0700 Initial commit of public session listing CGI hgPublicSessions and supporting changes to hgSession. refs #15312 diff --git src/hg/inc/sessionThumbnail.h src/hg/inc/sessionThumbnail.h new file mode 100644 index 0000000..845f6d6 --- /dev/null +++ src/hg/inc/sessionThumbnail.h @@ -0,0 +1,25 @@ +/* + * + */ + +char *sessionThumbnailFileName(char *userIdx, char *encSessionName, + char *firstUse); +/* Return a pointer to a string containing the name of the thumbnail image that + * would be associated with the given user and session name. Result must be freed. + * userIdx is a presumed unique ID suitable for being part of a filename. + * encSessionName is the cgi-encoded session name, and firstUse is the + * mysql-formatted time string for the session's creation date */ + +char *sessionThumbnailFilePath(char *userIdx, char *encSessionName, + char *firstUse); +/* Returns NULL if the image directory for session thumbnails hasn't been + * set in hg.conf. Otherwise, returns the filename and path for the + * thumbnail of the specified session */ + + +char *sessionThumbnailFileUri(char *userIdx, char *encSessionName, + char *firstUse); +/* Returns NULL if the web path to session thumbnails hasn't been + * defined in hg.conf. Otherwise, returns the path and filename for the + * thumbnail of the specified session */ +