Add common RPC interface components
Add rpc_status_t, service_status_t and rpc_uuid definitions which are
intended to be used across different RPC implementations and in both
client and endpoint code.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Icba3c7098657cde2904fe94e7154610253ad2438
diff --git a/components/rpc/common/interface/rpc_uuid.c b/components/rpc/common/interface/rpc_uuid.c
new file mode 100644
index 0000000..fd88b6e
--- /dev/null
+++ b/components/rpc/common/interface/rpc_uuid.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "rpc_uuid.h"
+#include <string.h>
+
+bool rpc_uuid_equal(const struct rpc_uuid *uuid_a, const struct rpc_uuid *uuid_b)
+{
+ return memcmp(uuid_a->uuid, uuid_b->uuid, sizeof(uuid_a->uuid)) == 0;
+}