axscmpnt.c

来自「wm PNE 3.3 source code, running at more 」· C语言 代码 · 共 65 行

C
65
字号
/* *  Copyright 2001-2005 Wind River Systems, Inc. *  All rights reserved.  Provided under license only. *  Distribution or other use of this software is only *  permitted pursuant to the terms of a license agreement *  from Wind River Systems (and is otherwise prohibited). *  Refer to that license agreement for terms of use. *//*modification history-------------------------01b,19apr05,job  update copyright notices01a,08mar04,job  dynamic configuration startup code*/#include "copyright_wrs.h"#include <vxWorks.h>#include <stdio.h>#include <msgQLib.h>#include <semLib.h>#include <taskLib.h>#include <wrn/wm/snmp/vxagent/axCfg.h>#include <wrn/wm/snmp/engine/vxcmpnts.h>#include <wrn/wm/snmp/vxagent/vxprotos.h>#include <wrn/wm/common/dyncfg.h>extern STATUS axSubagentIoInit (void);extern void snmpAxSubagentSpawn (void);void registerAxSubagentComponent (void);extern unsigned int snmpdInstalledComponentsValue;extern SEM_ID   snmpdConfigMutex;static void _ax_sub_user_dyncfg_init(void){}void initAxSubagentComponent (void){    int task_mode;    task_mode = 0x0000;    taskSpawn ("tRegAxSubagentComponent", 95, task_mode, 8182,                (FUNCPTR) registerAxSubagentComponent, 0,0,0,0,0,0,0,0,0,0);}void registerAxSubagentComponent (void){    semTake (snmpdConfigMutex, WAIT_FOREVER);    snmpdInstalledComponentsValue |= SNMPD_AGENTX_SUBAGENT_COMPONENT;    /* set up any pointers needed for dynamic configuration */    ax_sub_dyncfg_init ();     /* this one will handle the user part */    _ax_sub_user_dyncfg_init();    semGive (snmpdConfigMutex);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?