Commit 0ff446f4 authored by Wenxi XU's avatar Wenxi XU
Browse files

删除无用api

parent 585735be
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -50,23 +50,6 @@ struct AresInterface {
	void *priv_data;    // Interface-specific private data (e.g., UART device ptr)
};

/**
 * @brief Loads a protocol onto a communication interface.
 *
 * @param interface Pointer to the interface instance.
 * @param protocol Pointer to the protocol definition to load.
 * @return 0 on success, negative error code on failure.
 */
static inline int ares_interface_load_protocol(struct AresInterface *interface,
					       struct AresProtocol *protocol)
{
	if (!interface || !protocol) {
		return -EINVAL;
	}
	interface->protocol = protocol;
	return 0;
}

#ifdef __cplusplus
}
#endif