我已经看过了下面的代码。你能告诉我init(function_pointer):bgp_init(函数)是什么意思吗?
struct protocol proto_bgp = {
name: "BGP",
template: "bgp%d",
attr_class: EAP_BGP,
preference: DEF_PREF_BGP,
init: bgp_init,
start: bgp_start,
shutdown: bgp_shutdown,
};发布于 2014-10-21 20:18:25
对象后面的{...}称为初始值设定项列表。在本例中,init被初始化为bgp_init。
https://stackoverflow.com/questions/26486455
复制相似问题