/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

#ifndef VIRTMNGHOST_MSG_ADMIN_H
#define VIRTMNGHOST_MSG_ADMIN_H
#include "virtmng_msg_pub.h"

typedef int (*vmngh_admin_func)(struct vmng_msg_dev *msg_dev,
    struct vmng_msg_chan_rx_proc_info *proc_info);

int vmngh_register_admin_rx_func(int opcode, vmngh_admin_func admin_func);
void vmngh_unregister_admin_rx_func(int opcode);

void vmngh_init_admin_msg(struct vmng_msg_dev *msg_dev);
void vmngh_uninit_admin_msg(struct vmng_msg_dev *msg_dev);
#endif