MCPcopy Create free account
hub / github.com/amule-project/amule / GetED2KFileTypeSearchID

Function GetED2KFileTypeSearchID

src/OtherFunctions.cpp:952–966  ·  view source on GitHub ↗

Returns the ed2k file type integer ID which is to be used for publishing+searching

Source from the content-addressed store, hash-verified

950
951// Returns the ed2k file type integer ID which is to be used for publishing+searching
952EED2KFileType GetED2KFileTypeSearchID(EED2KFileType iFileID)
953{
954 switch (iFileID) {
955 case ED2KFT_AUDIO: return ED2KFT_AUDIO;
956 case ED2KFT_VIDEO: return ED2KFT_VIDEO;
957 case ED2KFT_IMAGE: return ED2KFT_IMAGE;
958 case ED2KFT_DOCUMENT: return ED2KFT_DOCUMENT;
959 case ED2KFT_PROGRAM: return ED2KFT_PROGRAM;
960 // NOTE: Archives and CD-Images are published+searched with file type "Pro"
961 // NOTE: If this gets changed, the function 'GetED2KFileTypeSearchTerm' also needs to get updated!
962 case ED2KFT_ARCHIVE: return ED2KFT_PROGRAM;
963 case ED2KFT_CDIMAGE: return ED2KFT_PROGRAM;
964 default: return ED2KFT_ANY;
965 }
966}
967
968
969/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected