toolchain: xpcg: replace bluelib with fx
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "msg.h"
|
||||
|
||||
#include <blue/ds/string.h>
|
||||
#include <fx/ds/string.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -17,7 +17,7 @@ struct interface_definition *interface_definition_create(
|
||||
|
||||
memset(out, 0x0, sizeof *out);
|
||||
|
||||
out->if_name = b_strdup(name);
|
||||
out->if_name = fx_strdup(name);
|
||||
out->if_id = id;
|
||||
|
||||
return out;
|
||||
@@ -25,12 +25,12 @@ struct interface_definition *interface_definition_create(
|
||||
|
||||
void interface_definition_destroy(struct interface_definition *iface)
|
||||
{
|
||||
b_queue_entry *entry = b_queue_pop_front(&iface->if_msg);
|
||||
fx_queue_entry *entry = fx_queue_pop_front(&iface->if_msg);
|
||||
while (entry) {
|
||||
struct msg_definition *msg
|
||||
= b_unbox(struct msg_definition, entry, msg_entry);
|
||||
= fx_unbox(struct msg_definition, entry, msg_entry);
|
||||
msg_definition_destroy(msg);
|
||||
entry = b_queue_pop_front(&iface->if_msg);
|
||||
entry = fx_queue_pop_front(&iface->if_msg);
|
||||
}
|
||||
|
||||
free(iface->if_name);
|
||||
@@ -41,15 +41,15 @@ bool interface_definition_has_msg(
|
||||
const struct interface_definition *iface,
|
||||
const char *name)
|
||||
{
|
||||
b_queue_entry *entry = b_queue_first(&iface->if_msg);
|
||||
fx_queue_entry *entry = fx_queue_first(&iface->if_msg);
|
||||
|
||||
while (entry) {
|
||||
struct msg_definition *msg
|
||||
= b_unbox(struct msg_definition, entry, msg_entry);
|
||||
= fx_unbox(struct msg_definition, entry, msg_entry);
|
||||
if (!strcmp(msg->msg_name, name)) {
|
||||
return true;
|
||||
}
|
||||
entry = b_queue_next(entry);
|
||||
entry = fx_queue_next(entry);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -59,5 +59,5 @@ void interface_definition_add_msg(
|
||||
struct interface_definition *iface,
|
||||
struct msg_definition *msg)
|
||||
{
|
||||
b_queue_push_back(&iface->if_msg, &msg->msg_entry);
|
||||
fx_queue_push_back(&iface->if_msg, &msg->msg_entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user