blob: 083eeaf81dc99f3d012002cf2d12c302e859defa [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/******************************************************************************
2*(C) Copyright 2016 Notion International Ltd.
3* All Rights Reserved
4******************************************************************************/
5/* -------------------------------------------------------------------------------------------------------------------
6 *
7 * Filename: mgui_version.h
8 *
9 * Authors: yueguangkai
10 *
11 * Description: mgui interface to version
12 *
13 * HISTORY:
14 * Feb 23, 2016 - Initial version
15 *
16 * Notes:
17 *
18 ******************************************************************************/
19#ifndef MGUI_VERSION_H
20#define MGUI_VERSION_H
21
22/******************************************************************************
23 * Include files
24 ******************************************************************************/
25#include <stdio.h>
26#include <stdlib.h>
27#include "mgui_ubus.h"
28
29/******************************************************************************
30 * Macros
31 ******************************************************************************/
32
33/******************************************************************************
34 * Structures
35 ******************************************************************************/
36
37struct mgui_version_info {
38 char *sw_version;
39 char *hdware_ver;
40 char *build_time;
41 char *CP_LTG_VER;
42 char *CP_LWG_VER;
43 char *mac_addr;
44};
45
46struct mgui_version_context {
47 struct mgui_context *mgui;
48 uint32_t version_ubus_id;
49 struct mgui_version_info info; /* version info database */
50};
51
52/******************************************************************************
53 * Function prototypes
54 ******************************************************************************/
55
56struct mgui_version_context *mgui_version_init(struct mgui_context *mgui);
57int mgui_version_exit(struct mgui_version_context *ctx);
58
59#endif /* MGUI_VERSION_H */
60