Commit 983828ad authored by Shane Snyder's avatar Shane Snyder
Browse files

add util fn for getting library verion

parent 6f1ee4f7
......@@ -117,6 +117,7 @@ static int darshan_log_get_filtered_namerecs(void *name_rec_buf, int buf_len, in
int darshan_log_get_namerecs_3_00(void *name_rec_buf, int buf_len,
int swap_flag, struct darshan_name_record_ref **hash);
static char *darshan_util_lib_ver = PACKAGE_VERSION;
/********************************************************
* publically exposed logutil functions *
......@@ -875,6 +876,11 @@ void darshan_log_print_version_warnings(const char *version_string)
return;
}
char *darshan_log_get_lib_version(void)
{
return darshan_util_lib_ver;
}
/********************************************************
* internal helper functions *
********************************************************/
......
......@@ -174,6 +174,7 @@ int darshan_log_put_mod(darshan_fd fd, darshan_module_id mod_id,
void *mod_buf, int mod_buf_sz, int ver);
void darshan_log_close(darshan_fd file);
void darshan_log_print_version_warnings(const char *version_string);
char *darshan_log_get_lib_version(void);
void darshan_log_get_modules (darshan_fd fd, struct darshan_mod_info **mods, int* count);
void darshan_log_get_name_records(darshan_fd fd,
struct darshan_name_record_info **mods,
......
......@@ -149,6 +149,7 @@ int darshan_log_get_exe(void*, char *);
int darshan_log_get_mounts(void*, struct darshan_mnt_info **, int*);
void darshan_log_get_modules(void*, struct darshan_mod_info **, int*);
int darshan_log_get_record(void*, int, void **);
char* darshan_log_get_lib_version(void);
int darshan_log_get_namehash(void*, struct darshan_name_record_ref **hash);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment