-
Notifications
You must be signed in to change notification settings - Fork 10
/
m3uargparse.hpp
27 lines (22 loc) · 893 Bytes
/
m3uargparse.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __M3UARGPARSE_HPP__
#define __M3UARGPARSE_HPP__
#include <stddef.h>
#include <string>
#include <vector>
#include "stdtype.h"
struct SongFileList
{
std::string fileName;
size_t playlistID;
size_t playlistSongID;
};
struct PlaylistFileList
{
std::string fileName;
size_t songCount;
};
UINT8 ParseSongFiles(const std::vector<char*>& args, std::vector<SongFileList>& songList, std::vector<PlaylistFileList>& playlistList);
UINT8 ParseSongFiles(const std::vector<const char*>& args, std::vector<SongFileList>& songList, std::vector<PlaylistFileList>& playlistList);
UINT8 ParseSongFiles(const std::vector<std::string>& args, std::vector<SongFileList>& songList, std::vector<PlaylistFileList>& playlistList);
UINT8 ParseSongFiles(size_t argc, const char* const* argv, std::vector<SongFileList>& songList, std::vector<PlaylistFileList>& playlistList);
#endif // __M3UARGPARSE_HPP__