summaryrefslogtreecommitdiffstats
path: root/src/state.c
AgeCommit message (Collapse)AuthorFilesLines
2015-03-07Add support for state deletion.David Robillard1-47/+191
Add lilv_node_get_path(). Add lilv_state_get_uri(). Add lilv_state_delete(). Fix creation of duplicate manifest entries when saving state. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5617 a436a847-0d15-0410-975c-d299462d15a1
2015-02-19Add lilv_state_emit_port_values() for special port value handling.David Robillard1-6/+13
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5586 a436a847-0d15-0410-975c-d299462d15a1
2015-02-08Preserve absolute paths in state if no link directory is given.David Robillard1-3/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5540 a436a847-0d15-0410-975c-d299462d15a1
2014-10-05Tolerate passing NULL to lilv_state_restore().David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5473 a436a847-0d15-0410-975c-d299462d15a1
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5429 a436a847-0d15-0410-975c-d299462d15a1
2014-07-31Minor code cleanups, slightly reduce LOC.David Robillard1-26/+13
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5416 a436a847-0d15-0410-975c-d299462d15a1
2014-07-15Add lilv_world_unload_bundle() and lilv_world_unload_resource().David Robillard1-1/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5413 a436a847-0d15-0410-975c-d299462d15a1
2013-12-17Fix more const issues.David Robillard1-9/+10
Require latest LV2 svn for Ingen (fix #945). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5174 a436a847-0d15-0410-975c-d299462d15a1
2013-03-25Allow lilv_state_restore() to be used without passing an instance, for ↵David Robillard1-2/+2
restoring port values via a callback only. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5100 a436a847-0d15-0410-975c-d299462d15a1
2013-02-18Make use of sord_get().David Robillard1-20/+16
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5057 a436a847-0d15-0410-975c-d299462d15a1
2013-02-18Fix SordNode leaks.David Robillard1-5/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5056 a436a847-0d15-0410-975c-d299462d15a1
2013-02-02Require a URI for lilv_state_to_string() and fail gracefully otherwise.David Robillard1-0/+9
Fail gracefully when lilv_state_new_from_string() is called on NULL. Fixes #865. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5030 a436a847-0d15-0410-975c-d299462d15a1
2013-01-27Don't print errors when loading plugin description as default state.David Robillard1-5/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5010 a436a847-0d15-0410-975c-d299462d15a1
2013-01-26Support state:loadDefaultState.David Robillard1-0/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5007 a436a847-0d15-0410-975c-d299462d15a1
2012-08-13Fix potential crash when state saving fails.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4676 a436a847-0d15-0410-975c-d299462d15a1
2012-08-10Always back LilvNode with a SordNode and shave 16 bytes off of LilvNode.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4642 a436a847-0d15-0410-975c-d299462d15a1
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-10/+10
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4631 a436a847-0d15-0410-975c-d299462d15a1
2012-07-29Fix bogus warning about control reaching end of non-void function.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4568 a436a847-0d15-0410-975c-d299462d15a1
2012-07-15Gracefully handle failure to save plugin state and print error message.David Robillard1-2/+21
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4537 a436a847-0d15-0410-975c-d299462d15a1
2012-04-12Use URI defines from LV2 headers where possible.David Robillard1-18/+16
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4175 a436a847-0d15-0410-975c-d299462d15a1
2012-04-12Fix saving state with files.David Robillard1-7/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4174 a436a847-0d15-0410-975c-d299462d15a1
2012-04-12Remove pointless lilv_world_find_statements() wrapper and use new sord_search().David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4169 a436a847-0d15-0410-975c-d299462d15a1
2012-04-11Write port values in presets as pretty numbers.David Robillard1-1/+7
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4168 a436a847-0d15-0410-975c-d299462d15a1
2012-04-06Fix compilation under MSVC.David Robillard1-3/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4149 a436a847-0d15-0410-975c-d299462d15a1
2012-03-31Update for latest LV2 state extension.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4133 a436a847-0d15-0410-975c-d299462d15a1
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4112 a436a847-0d15-0410-975c-d299462d15a1
2012-03-20Depend on sratom as a proper library and eliminate rampant copy/paste code ↵David Robillard1-3/+7
reuse. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4082 a436a847-0d15-0410-975c-d299462d15a1
2012-03-11Don't pretend state, atom, and urid are optional.David Robillard1-70/+30
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4044 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Update for latest serd.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4035 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Add base_uri parameter to lilv_state_to_string().David Robillard1-3/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4032 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08serd_node_new_uri_from_path => serd_node_new_file_uri.David Robillard1-21/+12
Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4031 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Update sratom to write paths as file URIs, and related state fixes.David Robillard1-50/+49
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4030 a436a847-0d15-0410-975c-d299462d15a1
2012-03-06Add lilv_state_new_from_string().David Robillard1-15/+58
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4024 a436a847-0d15-0410-975c-d299462d15a1
2012-03-06Use raw type/size/value instead of LilvNode for port values.David Robillard1-61/+47
Remove use of half-baked node_to_serd() and use sratom for port values as well. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4023 a436a847-0d15-0410-975c-d299462d15a1
2012-03-05Add missing pkg-config dependencies.David Robillard1-21/+18
Update for latest state extension. Tidy. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4022 a436a847-0d15-0410-975c-d299462d15a1
2012-03-03Remove pointless wrapper around Sord API.David Robillard1-12/+12
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4020 a436a847-0d15-0410-975c-d299462d15a1
2012-03-03Use a fully-fledged Atom serialisation API for state saving.David Robillard1-250/+160
Add lilv_state_to_string(). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4018 a436a847-0d15-0410-975c-d299462d15a1
2012-02-26Fix state restoration with paths.David Robillard1-10/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4000 a436a847-0d15-0410-975c-d299462d15a1
2012-02-19Update for latest LV2 changes.David Robillard1-9/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3987 a436a847-0d15-0410-975c-d299462d15a1
2012-02-03Gracefully tolerate NULL get_value passed to lilv_state_new_from_instance().David Robillard1-10/+12
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3975 a436a847-0d15-0410-975c-d299462d15a1
2012-02-01Windows compatibility fixes.David Robillard1-10/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3971 a436a847-0d15-0410-975c-d299462d15a1
2012-01-28Update state interface to support multiple state snapshots with shared files.David Robillard1-119/+158
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3967 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Fix memory leaks.David Robillard1-2/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3966 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3963 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Support compilation as C++ under MSVC++,David Robillard1-10/+11
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3955 a436a847-0d15-0410-975c-d299462d15a1
2012-01-15Shrink code.David Robillard1-18/+13
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3951 a436a847-0d15-0410-975c-d299462d15a1
2012-01-15Lint.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3949 a436a847-0d15-0410-975c-d299462d15a1
2012-01-14Lint.David Robillard1-20/+24
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3948 a436a847-0d15-0410-975c-d299462d15a1
2012-01-12Factor out common SerdWriter creation code.David Robillard1-44/+42
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3935 a436a847-0d15-0410-975c-d299462d15a1
2012-01-10Fix loading state from world model.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3930 a436a847-0d15-0410-975c-d299462d15a1