secgateway/Platform/user/configm/config-server/jumppage_config/jumppage.c

39 lines
996 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "../../../../common/rpc/rpc.h"
#include "../include/parsefile.h"
#include "../include/configm.h"
#include "../../../netlink_uapi/libnetlinku.h"
#include "../include/jumppage.h"
#include <cjson/cJSON.h>
#include "../../../../../Common/s2j/s2j.h"
#include "../../../../../Common/commuapinl.h"
/*全局变量,存放用户跳转的页面 */
char *jumpurl;
/*初始化 */
char *jumpurl = NULL;
/*系统管理模块将数据内容(URL地址发送给web server */
ret_code jumppage_config_proc(uint source, uint config_type,
pointer input, int input_len,
pointer output, int *output_len)
{
ret_code ret = RET_OK;
char *struct_jumppage;
struct_jumppage = (char *)input;
rpc_log_info("jumppage configure: url: %s\n",
struct_jumppage);
/*将配置信息发送到web server */
/*把本地Portal server的配置信息存入全局变量 */
jumpurl = struct_jumppage;
return RET_OK;
}