summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-08-06Add lilv_temp_directory_path()David Robillard2-0/+23
2020-08-06Add block parameter to lilv_flockDavid Robillard3-7/+12
2020-08-06Remove lilv_dir_path()David Robillard3-27/+4
This function was weird. Instead, to make a directory path with trailing separator, join nothing as in Python.
2020-08-06Rename some filename utilities for clarityDavid Robillard8-31/+31
Loosely inspired by Python and the std::filesystem API.
2020-08-06Separate filesystem utilitiesDavid Robillard22-420/+586
2020-07-21Use nullptr in C++ headerDavid Robillard2-3/+2
2020-07-21Suppress Wzero-as-null-pointer-constant in headerDavid Robillard1-0/+7
For convenience of C++ projects that include the C header.
2020-07-17Fix potential NULL dereference warningDavid Robillard1-3/+9
Not really something that matters in these cases since allocation failure is not handled gracefully anyway.
2020-07-16Fix literal conversion warnings on MSVCDavid Robillard1-3/+3
2020-07-16Modernize compiler version checksDavid Robillard2-4/+4
Avoids a warning on compilers where __GNUC__ is not defined.
2020-07-16Add a more powerful lint targetDavid Robillard2-9/+73
2020-07-16Fix flake8 warningsDavid Robillard1-20/+26
2020-07-16Fix potential va_list leakDavid Robillard1-0/+1
2020-07-16Add missing variable initializationsDavid Robillard3-6/+7
2020-07-16Be explicit about warningsDavid Robillard2-0/+58
2020-07-16Annotate printf-style functionDavid Robillard1-0/+7
2020-07-16Add missing extern declarationDavid Robillard1-0/+3
This avoids a clang warning about strict declarations.
2020-07-16Add missing static specifiersDavid Robillard2-14/+14
2020-07-16Fix conversion warningsDavid Robillard6-11/+11
2020-07-16Remove unnecessary definesDavid Robillard3-6/+0
2020-07-16Split test suite up into several independent programsDavid Robillard25-2150/+2961
2020-07-16Only define Windows path utility function on WindowsDavid Robillard1-0/+2
Avoids a warning about an unused fuction.
2020-07-16Clean up includesDavid Robillard7-6/+16
2020-07-16Automatically write prefixes to test filesDavid Robillard2-42/+28
Makes the code less repetitive and verbose. They were all the same at this point anyway, since unused prefixes don't hurt anything.
2020-07-16Use standard assert for test expectationsDavid Robillard10-398/+358
The old one aborted anyway, and I've been using assert for tests in other projects for a while now, and never really missed having something more complex. The lack of a dependency or repetitive code is nice. Since the unit tests are about to be split up, the abort thing will become less of an issue anyway.
2020-07-15Rewrite and separate common test facilitiesDavid Robillard4-415/+486
2020-06-19Check for CreateSymbolicLink at configure timeDavid Robillard2-18/+10
This uses the system CreateSymbolicLink if it is available at compile time, and if not, just acts as if the link failed (which is extremely likely anyway). This removes the ugly wrapper code that has been a constant source of compatibility headaches with weird toolchains.
2020-06-19Use strict function checksDavid Robillard1-0/+8
This makes the function checks work with strict warnings and Werror, but is also stronger because checks will fail if the function prototypes are not as expected (though this is incredibly unlikely since these are all standard functions).
2020-06-19Update autowafDavid Robillard1-0/+0
2020-05-17Make lilv_world_get() use translationsDavid Robillard3-1/+27
2020-04-26Lilv 0.24.8v0.24.8David Robillard2-4/+4
2020-04-26Update autowafDavid Robillard1-0/+0
2020-03-12Use consistent tagline in documentationDavid Robillard1-3/+4
2020-02-23Fix namespace add operator with Python 2David Robillard1-0/+3
In Python 2, a __coerce__ attribute of the Namespace is requested in this case, which ends up producing an error. Work around this by defining a __coerce__ method that does nothing so __getattr__ is not called for it.
2020-02-17Add __add__ magic method to Python Namespace classChristopher Arndt2-0/+6
This allows creating URIs from a Namespace instance by adding a suffix.
2020-02-17Simplify lv2_list_presets.pyDavid Robillard1-4/+2
2020-02-17Allow passing strings for URIs in Python API when unambiguousDavid Robillard3-45/+113
2020-02-17Update Python binding boilerplateDavid Robillard2-4/+4
2020-02-17Add positive Python test for get_port_by_designation()David Robillard2-0/+6
2020-02-17Support checking if Python objects with URIs are in a NodesDavid Robillard2-7/+9
2020-02-17Add portable Python _is_string() utility and use it everywhereDavid Robillard1-5/+12
2020-01-18Fix memory leak when dyn-manifest has no pluginsDavid Robillard4-12/+23
2020-01-18Fix cases where incorrect translation is usedDavid Robillard2-10/+18
2020-01-18Clean up i18n codeDavid Robillard1-20/+20
2020-01-18Delete all temporary state bundles saved by the test suiteDavid Robillard1-9/+35
2020-01-18Update manifest when deleting state from a non-empty bundleDavid Robillard1-1/+6
This fixes a bug where the manifest would contain dangling references to old state if multiple states were saved to a single bundle and one is deleted. As far as I know this has not been encountered by anyone in reality, since this is an uncommon scenario (it's somewhat in question whether it should be supported at all).
2020-01-18Support deleting state that has not been savedDavid Robillard1-16/+21
This makes it possible to delete state bundles created from an instance, where the plugin has added some files to the bundle, but the state has not yet been saved by the host so there is no manifest and/or state file.
2020-01-18Clean up path code in lilv_state_delete()David Robillard1-6/+5
2020-01-18Fix deleting state bundles loaded from the modelDavid Robillard3-38/+52
2020-01-18Only remove files in state bundle when deleting stateDavid Robillard1-6/+8