读书人

没有名字的struct,该怎么解决

发布时间: 2012-03-19 22:03:05 作者: rapoo

没有名字的struct

C/C++ code
kernel/external/bluetooth/bluez/network/common.cstatic struct {    const char  *name;      /* Friendly name */    const char  *uuid128;   /* UUID 128 */    uint16_t    id;     /* Service class identifier */} __svc[] = {    { "panu",   PANU_UUID,  BNEP_SVC_PANU   },    { "gn",     GN_UUID,    BNEP_SVC_GN },    { "nap",    NAP_UUID,   BNEP_SVC_NAP    },    { NULL }};


请问源码里面有些struct没有名字,这样的struct是干什么的呢?
thanks


[解决办法]
直接拿它定义变量,以后就不再直接使用了。
[解决办法]
楼上正解。。

读书人网 >Android

热点推荐