Do I have to pass filename of config file and policy file as arguments or the pointer to file? Is this code right or should I pass only the filename?
Here I am passing pointer to the file:
FILE *pcd_file, *cfg_file;
cfg_file = fopen("/usr/etc/usdpaa_config_t4_serdes_1_1_6_6.xml", "a+");
pcd_file = fopen("/usr/etc/usdpaa_policy_hash_ipv4.xml", "a+");
netcfg = usdpaa_netcfg_acquire( (const char *)pcd_file, (const char *)cfg_file);
Or should I pass the filenames:
const char * cfg_file, *pcd_file;
cfg_file = "/usr/etc/usdpaa_config_t4_serdes_1_1_6_6.xml";
pcd_file = "/usr/etc/usdpaa_policy_hash_ipv4.xml";
netcfg = usdpaa_netcfg_acquire( (pcd_file,cfg_file);