X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=session_file.c;h=c8939e5f300b6a4c4f885314f7afa1f8f87d56e4;hb=120b259ea8f17b74deca3ba4b71e78771539bde8;hp=48a2747d805709a23d9f63c63c3fcef53cfd4bba;hpb=2bf4aca64ad435a09359662446762840ac55db1d;p=libsigrok.git diff --git a/session_file.c b/session_file.c index 48a2747d..c8939e5f 100644 --- a/session_file.c +++ b/session_file.c @@ -25,11 +25,11 @@ #include #include #include +#include extern struct sr_session *session; extern struct sr_device_plugin session_driver; - int sr_session_load(const char *filename) { GKeyFile *kf; @@ -136,13 +136,13 @@ int sr_session_load(const char *filename) return SR_OK; } -int sr_session_save(char *filename) +int sr_session_save(const char *filename) { GSList *l, *p, *d; FILE *meta; struct sr_device *device; struct sr_probe *probe; - struct datastore *ds; + struct sr_datastore *ds; struct zip *zipfile; struct zip_source *versrc, *metasrc, *logicsrc; int bufcnt, devcnt, tmpfile, ret, error, probecnt; @@ -242,4 +242,3 @@ int sr_session_save(char *filename) return SR_OK; } -