| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 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 | |
| 37 | struct 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 | |
| 46 | struct 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 | |
| 56 | struct mgui_version_context *mgui_version_init(struct mgui_context *mgui); |
| 57 | int mgui_version_exit(struct mgui_version_context *ctx); |
| 58 | |
| 59 | #endif /* MGUI_VERSION_H */ |
| 60 | |