mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
Use strings rather than hashes to identify transports. Dev task #64.
This commit is contained in:
@@ -15,16 +15,11 @@ import org.briarproject.api.ContactId;
|
||||
import org.briarproject.api.TransportId;
|
||||
import org.briarproject.api.plugins.simplex.SimplexPluginCallback;
|
||||
import org.briarproject.api.system.FileUtils;
|
||||
import org.briarproject.util.StringUtils;
|
||||
|
||||
class RemovableDrivePlugin extends FilePlugin
|
||||
implements RemovableDriveMonitor.Callback {
|
||||
|
||||
static final byte[] TRANSPORT_ID =
|
||||
StringUtils.fromHexString("7c81bf5c9b1cd557685548c85f976bbd"
|
||||
+ "e633d2418ea2e230e5710fb43c6f8cc0"
|
||||
+ "68abca3a9d0edb13bcea13b851725c5d");
|
||||
static final TransportId ID = new TransportId(TRANSPORT_ID);
|
||||
static final TransportId ID = new TransportId("file");
|
||||
|
||||
private static final Logger LOG =
|
||||
Logger.getLogger(RemovableDrivePlugin.class.getName());
|
||||
@@ -45,10 +40,6 @@ implements RemovableDriveMonitor.Callback {
|
||||
return ID;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return "REMOVABLE_DRIVE_PLUGIN_NAME";
|
||||
}
|
||||
|
||||
public boolean start() throws IOException {
|
||||
running = true;
|
||||
monitor.start(this);
|
||||
|
||||
Reference in New Issue
Block a user