forked from I2P_Developers/i2p.i2p
Update: Preliminary work for su3 router updates:
- new ROUTER_SIGNED_SU3 UpdateType - Add support for torrent and HTTP - Refactor UpdateRunners to return actual UpdateType - Deal with signed/su3 conflicts - unpack/verify stubbed only
This commit is contained in:
@ -64,11 +64,16 @@ public class SU3File {
|
||||
|
||||
private static final int TYPE_ZIP = 0;
|
||||
|
||||
public static final int CONTENT_UNKNOWN = 0;
|
||||
public static final int CONTENT_ROUTER = 1;
|
||||
public static final int CONTENT_PLUGIN = 2;
|
||||
public static final int CONTENT_RESEED = 3;
|
||||
|
||||
private enum ContentType {
|
||||
UNKNOWN(0, "unknown"),
|
||||
ROUTER(1, "router"),
|
||||
PLUGIN(2, "plugin"),
|
||||
RESEED(3, "reseed")
|
||||
UNKNOWN(CONTENT_UNKNOWN, "unknown"),
|
||||
ROUTER(CONTENT_ROUTER, "router"),
|
||||
PLUGIN(CONTENT_PLUGIN, "plugin"),
|
||||
RESEED(CONTENT_RESEED, "reseed")
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
@ -6,14 +6,22 @@ package net.i2p.update;
|
||||
* @since 0.9.4
|
||||
*/
|
||||
public enum UpdateType {
|
||||
TYPE_DUMMY, // Internal use only
|
||||
/** Dummy: internal use only */
|
||||
TYPE_DUMMY,
|
||||
NEWS,
|
||||
ROUTER_SIGNED,
|
||||
ROUTER_UNSIGNED,
|
||||
PLUGIN,
|
||||
/** unused */
|
||||
GEOIP,
|
||||
/** unused */
|
||||
BLOCKLIST,
|
||||
/** unused */
|
||||
RESEED,
|
||||
/** unused */
|
||||
HOMEPAGE,
|
||||
ADDRESSBOOK
|
||||
/** unused */
|
||||
ADDRESSBOOK,
|
||||
/** @since 0.9.9 */
|
||||
ROUTER_SIGNED_SU3
|
||||
}
|
||||
|
Reference in New Issue
Block a user