File: test_uri_map.h

package info (click to toggle)
sratom 0.6.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: ansic: 1,709; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2026 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC

#ifndef SRATOM_TEST_TEST_URI_MAP_H
#define SRATOM_TEST_TEST_URI_MAP_H

#include <lv2/urid/urid.h>

#include <stddef.h>

/// Simple O(n) URI map
typedef struct {
  char** uris;
  size_t n_uris;
} Uris;

LV2_URID
urid_map(LV2_URID_Map_Handle handle, const char* uri);

const char*
urid_unmap(LV2_URID_Unmap_Handle handle, LV2_URID urid);

void
free_uris(Uris* uris);

#endif // SRATOM_TEST_TEST_URI_MAP_H