Ardour  9.0-pre0-582-g084a23a80d
resources.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Luciano Iam <oss@lucianoiam.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the/GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _ardour_surface_websockets_resources_h_
20 #define _ardour_surface_websockets_resources_h_
21 
22 #include <string>
23 #include <vector>
24 
25 #include "manifest.h"
26 
27 namespace ArdourSurface {
28 
29 typedef std::vector<SurfaceManifest> SurfaceManifestVector;
30 
32 {
33 public:
35 
36  const std::string& index_dir ();
37  const std::string& builtin_dir ();
38  const std::string& user_dir ();
39 
40  std::string scan ();
41 
42 private:
43 
44  std::string _index_dir;
45  std::string _builtin_dir;
46  std::string _user_dir;
47 
48  std::string server_data_dir ();
49 
51 
52 };
53 
54 } // namespace ArdourSurface
55 
56 #endif // _ardour_surface_websockets_resources_h_
const std::string & user_dir()
const std::string & builtin_dir()
SurfaceManifestVector read_manifests(std::string)
const std::string & index_dir()
std::vector< SurfaceManifest > SurfaceManifestVector
Definition: resources.h:29