make_string_parameter ( & ( out->array_of_parameter[0] ), "%s", LOG_DIRECTORY );
} else if ( capability == CAPABILITY_APPCMD ) {
make_string_parameter ( & ( out->array_of_parameter[0] ), "%s", PLUGIN_RET_ENABLED );
+ } else if (capability == CAPABILITY_DEBUGMODE ) {
+ make_string_parameter ( & ( out->array_of_parameter[0] ), "%s", PLUGIN_RET_ENABLED );
} else {
out->number_of_parameter = 0;
free ( out->array_of_parameter );
}
+ // pkgcmd debug mode support
+ if(!request_capability_to_plugin(CAPABILITY_DEBUGMODE, g_capabilities.pkgcmd_debugmode,
+ sizeof(g_capabilities.pkgcmd_debugmode))) {
+ D("failed to request. (%d:%d) \n", PLUGIN_SYNC_CMD_CAPABILITY, CAPABILITY_DEBUGMODE);
+ snprintf(g_capabilities.pkgcmd_debugmode, sizeof(g_capabilities.pkgcmd_debugmode),
+ "%s", ENABLED);
+ }
+
+
// Zone support
ret = is_container_enabled();
snprintf(g_capabilities.zone_support, sizeof(g_capabilities.zone_support),
char sdbd_version[CAPBUF_ITEMSIZE]; // sdbd version
char sdbd_plugin_version[CAPBUF_ITEMSIZE]; // sdbd plugin version
char sdbd_cap_version[CAPBUF_ITEMSIZE]; // capability version
+ char pkgcmd_debugmode[CAPBUF_ITEMSIZE]; // enabled or disabled
} pcap;
extern pcap g_capabilities;
#define CAPABILITY_LOG_PATH 10010
#define CAPABILITY_APPCMD 10011
#define CAPABILITY_ENCRYPTION 10012
+#define CAPABILITY_DEBUGMODE 10013
// ===============================================================================
// priority definition
offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
"log_path", g_capabilities.log_path);
+ offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
+ "pkgcmd_debugmode", g_capabilities.pkgcmd_debugmode);
+
// Application command support
offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
"appcmd_support", g_capabilities.appcmd_support);