about summary refs log blame commit diff stats
path: root/part_ids.h
blob: d686e0b98a177c7bbaf0f68c3dbf14b0a5170da4 (plain) (tree)

















                                                                        
#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