diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 17:37:30 +0900 |
| commit | e2340efe2788648a6edc49eaa236e1f62d96a937 (patch) | |
| tree | d182c828e80c0d63069160805ff7d023e512b02e /src/ContextAttribute.h | |
| parent | 0030025bb6989b130c7f609819669e0619519d64 (diff) | |
Use std::vector instead of std::map for ContextAttribute objects
Now key for ContextAttribute object store is int instead of string.
Diffstat (limited to 'src/ContextAttribute.h')
| -rw-r--r-- | src/ContextAttribute.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ContextAttribute.h b/src/ContextAttribute.h index 02bda128..10b9f129 100644 --- a/src/ContextAttribute.h +++ b/src/ContextAttribute.h @@ -43,6 +43,17 @@ struct ContextAttribute { virtual ~ContextAttribute() {} }; +enum ContextAttributeType { + // For BitTorrent + CTX_ATTR_BT, + // Max value of attribute type to use allocate vector to hold + // attributes. + MAX_CTX_ATTR +}; + +// Returns human readable string representation of type |key| +const char* strContextAttributeType(ContextAttributeType key); + } // namespace aria2 #endif // D_CONTEXT_ATTRIBUTE_H |
