Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
uuid.h43 linesDownload Raw Back to utils
1/*-------------------------------------------------------------------------2 *3 * uuid.h4 *	  Header file for the "uuid" ADT. In C, we use the name pg_uuid_t,5 *	  to avoid conflicts with any uuid_t type that might be defined by6 *	  the system headers.7 *8 * Copyright (c) 2007-2023, PostgreSQL Global Development Group9 *10 * src/include/utils/uuid.h11 *12 *-------------------------------------------------------------------------13 */14#ifndef UUID_H15#define UUID_H16 17/* uuid size in bytes */18#define UUID_LEN 1619 20typedef struct pg_uuid_t21{22	unsigned char data[UUID_LEN];23} pg_uuid_t;24 25/* fmgr interface macros */26static inline Datum27UUIDPGetDatum(const pg_uuid_t *X)28{29	return PointerGetDatum(X);30}31 32#define PG_RETURN_UUID_P(X)		return UUIDPGetDatum(X)33 34static inline pg_uuid_t *35DatumGetUUIDP(Datum X)36{37	return (pg_uuid_t *) DatumGetPointer(X);38}39 40#define PG_GETARG_UUID_P(X)		DatumGetUUIDP(PG_GETARG_DATUM(X))41 42#endif							/* UUID_H */43 
codekingpro/portable-devtools · Team Ai