X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fsession_file.c;h=fa9f9edba3f5a9e8d744a3db14d9512878fa6864;hb=7efe889e7aa5849ae3e4d09b8f50779992502b79;hp=1c1cee5d68c9c9defe1521ef02a2b9a3f5d9260c;hpb=155b680da482cea2381becb73c51cfb838bff31e;p=libsigrok.git diff --git a/src/session_file.c b/src/session_file.c index 1c1cee5d..fa9f9edb 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -102,6 +102,7 @@ SR_PRIV int sr_sessionfile_check(const char *filename) * Load the session from the specified filename. * * @param filename The name of the session file to load. Must not be NULL. + * @param session The session to load the file into. Must not be NULL. * * @return SR_OK upon success, SR_ERR_ARG upon invalid arguments, * SR_ERR_MALLOC upon memory allocation errors, or SR_ERR upon @@ -220,6 +221,7 @@ SR_API int sr_session_load(const char *filename, struct sr_session **session) /** * Save a session to the specified file. * + * @param session The session to save to the specified file. Must not be NULL. * @param filename The name of the filename to save the session as. * Must not be NULL. * @param sdi The device instance from which the data was captured. @@ -279,6 +281,7 @@ SR_API int sr_session_save(struct sr_session *session, const char *filename, /** * Initialize a saved session file. * + * @param session The session to use. Must not be NULL. * @param filename The name of the filename to save the session as. * Must not be NULL. * @param samplerate The samplerate to store for this session. @@ -300,7 +303,7 @@ SR_API int sr_session_save_init(struct sr_session *session, int tmpfile, cnt, ret, i; char version[1], metafile[32], *s; - (void) session; + (void)session; if (!filename) { sr_err("%s: filename was NULL", __func__); @@ -375,6 +378,7 @@ SR_API int sr_session_save_init(struct sr_session *session, * The session file must have been created with sr_session_save_init() * or sr_session_save() beforehand. * + * @param session The session to use. Must not be NULL. * @param filename The name of the filename to append to. Must not be NULL. * @param buf The data to be appended. * @param unitsize The number of bytes per sample. @@ -402,7 +406,7 @@ SR_API int sr_session_append(struct sr_session *session, const char *filename, const char *entry_name; char *metafile, tmpname[32], chunkname[16]; - (void) session; + (void)session; if ((ret = sr_sessionfile_check(filename)) != SR_OK) return ret;