Add feature to take extra capabilities from plugin
[sdk/target/sdbd.git] / src / plugin.h
old mode 100644 (file)
new mode 100755 (executable)
index 1b2ccbe..72345c6
@@ -45,18 +45,39 @@ int request_capability_to_plugin ( int cap, char* out_buf, unsigned int out_len
 // return 0 if disallowed by plugin (invalid)
 int request_validity_to_plugin ( int cmd, const char* in_buf );
 
+// return 1 if allowed by plugin (valid)
+// return 0 if disallowed by plugin (invalid)
+int request_extcmd_validity_to_plugin ( int cmd, const char* in_buf);
+
 // return 1 if succeed to convert
 // return 0 otherwise
 int request_conversion_to_plugin ( int cmd, const char* in_buf, char* out_buf, unsigned int out_len );
 
+// return 1 if succeed to convert
+// return 0 otherwise
+int request_extcmd_conversion_to_plugin ( int cmd, const char* in_buf, char* out_buf, unsigned int out_len );
+
 // return 1 if locked
 // return 0 if unlocked
 // return -1 if request failed
 int request_lock_state_to_plugin ( int lock_type );
 
+// return 1 if shell command handled by plugin (handle)
+// return 0 if shell command not handled by plugin (not handle)
+int request_handlecmd_to_plugin ( int cmd, const char* in_buf );
+
+// return nonnegative integer that is a socket descriptor for communication
+//        with async proc thread if success to create async proc thread
+// return -1 if failed to create async proc thread
+int request_shellcmd_to_plugin ( const char* in_buf );
+
 // return nonnegative integer that is a socket descriptor for communication
 //        with async proc thread if success to create async proc thread
 // return -1 if failed to create async proc thread
 int request_appcmd_to_plugin ( const char* in_buf );
 
+// return 1 if succeed to get capability from plugin
+// return 0 otherwise
+int request_extra_capability_to_plugin (char* out_buf, unsigned int out_len );
+
 #endif //__PLUGIN_H