about summary refs log tree commit diff stats
path: root/part_ids.h
blob: d686e0b98a177c7bbaf0f68c3dbf14b0a5170da4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

/* SPDX-License-Identifier: MIT */

#ifndef PART_IDS_H
#define PART_IDS_H

#include "guid.h"

/* Length of string-format GUID *excluding* NUL terminator. */
#define GUID_STRLEN (sizeof("ABCDEF01-2345-6789-ABCD-EF0123456789") - 1)

int
valid_string_guid(const char str[GUID_STRLEN]);

int
parse_guid(const char *str, GUID *guid);

#endif