Instrument Neutral Distributed Interface INDI  2.0.2
sharedblob_parse.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright(c) 2022 Ludovic Pollet. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 *******************************************************************************/
18 
19 #pragma once
20 
21 #include <vector>
22 #include <string>
23 
24 namespace INDI
25 {
26 
27 // Allocate a new uuid for this blob content
28 std::string allocateBlobUid(int fd);
29 
30 // Release the blob for which uid has not been attached
31 void releaseBlobUids(const std::vector<std::string> &uids);
32 
33 // Attach the given blob buffer and release it's uid
34 void * attachBlobByUid(const std::string &uid, size_t size);
35 
36 }
int fd
Definition: intelliscope.c:43
Namespace to encapsulate INDI client, drivers, and mediator classes.
void * attachBlobByUid(const std::string &identifier, size_t size)
void releaseBlobUids(const std::vector< std::string > &blobs)
std::string allocateBlobUid(int fd)