make service control functions asynchronous
This commit is contained in:
@@ -6,8 +6,10 @@ import com.github.shadowsocks.aidl.IShadowsocksServiceCallback;
|
||||
interface IShadowsocksService {
|
||||
int getMode();
|
||||
int getState();
|
||||
void start(in Config config);
|
||||
void stop();
|
||||
|
||||
void registerCallback(IShadowsocksServiceCallback cb);
|
||||
void unregisterCallback(IShadowsocksServiceCallback cb);
|
||||
}
|
||||
|
||||
oneway void start(in Config config);
|
||||
oneway void stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user