mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 23:07:21 +00:00
183 lines
3.7 KiB
C
183 lines
3.7 KiB
C
/**
|
|
* Looking Glass
|
|
* Copyright © 2017-2026 The Looking Glass Authors
|
|
* https://looking-glass.io
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc., 59
|
|
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#include "core/clipboard_files.h"
|
|
#include "core/clipboard.h"
|
|
|
|
bool clipboardFiles_init(void)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void clipboardFiles_free(void)
|
|
{
|
|
}
|
|
|
|
bool clipboardFiles_setLocal(const char * mime,
|
|
const void * data, size_t size)
|
|
{
|
|
(void)mime;
|
|
(void)data;
|
|
(void)size;
|
|
return false;
|
|
}
|
|
|
|
void clipboardFiles_clearLocal(void)
|
|
{
|
|
}
|
|
|
|
bool clipboardFiles_getRemote(const char * mime,
|
|
char ** data, size_t * size)
|
|
{
|
|
(void)mime;
|
|
if (data)
|
|
*data = NULL;
|
|
if (size)
|
|
*size = 0;
|
|
return false;
|
|
}
|
|
|
|
uint64_t clipboardFiles_remotePresentationAcquire(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
bool clipboardFiles_getRemotePresentation(uint64_t presentation,
|
|
const char * mime, char ** data, size_t * size)
|
|
{
|
|
(void)presentation;
|
|
(void)mime;
|
|
if (data)
|
|
*data = NULL;
|
|
if (size)
|
|
*size = 0;
|
|
return false;
|
|
}
|
|
|
|
void clipboardFiles_remotePresentationDelivered(uint64_t presentation)
|
|
{
|
|
(void)presentation;
|
|
}
|
|
|
|
void clipboardFiles_remotePresentationRelease(uint64_t presentation)
|
|
{
|
|
(void)presentation;
|
|
}
|
|
|
|
bool clipboardFiles_remoteReady(uint64_t dataset)
|
|
{
|
|
(void)dataset;
|
|
return false;
|
|
}
|
|
|
|
bool clipboardFiles_remoteOffer(uint64_t dataset)
|
|
{
|
|
(void)dataset;
|
|
return false;
|
|
}
|
|
|
|
void clipboardFiles_remoteClear(void)
|
|
{
|
|
}
|
|
|
|
void clipboardFiles_providerUnavailable(void)
|
|
{
|
|
}
|
|
|
|
void clipboardFiles_remoteAcquired(uint64_t dataset,
|
|
uint64_t acquisition, LG_ClipboardFileError error)
|
|
{
|
|
(void)dataset;
|
|
(void)acquisition;
|
|
(void)error;
|
|
}
|
|
|
|
LG_ClipboardResult clipboardFiles_remoteDataBegin(
|
|
const LG_ClipboardFileRequest * request, uint64_t sizeHint)
|
|
{
|
|
(void)request;
|
|
(void)sizeHint;
|
|
return LG_CLIPBOARD_RESULT_FAILED;
|
|
}
|
|
|
|
LG_ClipboardResult clipboardFiles_remoteDataChunk(
|
|
const LG_ClipboardFileRequest * request, uint64_t responseOffset,
|
|
const void * data, size_t size)
|
|
{
|
|
(void)request;
|
|
(void)responseOffset;
|
|
(void)data;
|
|
(void)size;
|
|
return LG_CLIPBOARD_RESULT_FAILED;
|
|
}
|
|
|
|
LG_ClipboardResult clipboardFiles_remoteDataEnd(
|
|
const LG_ClipboardFileRequest * request, uint64_t finalSize)
|
|
{
|
|
(void)request;
|
|
(void)finalSize;
|
|
return LG_CLIPBOARD_RESULT_FAILED;
|
|
}
|
|
|
|
void clipboardFiles_remoteCancel(uint64_t dataset,
|
|
uint64_t request, LG_ClipboardFileError reason)
|
|
{
|
|
(void)dataset;
|
|
(void)request;
|
|
(void)reason;
|
|
}
|
|
|
|
void clipboardFiles_localAcquire(uint64_t dataset,
|
|
uint64_t acquisition)
|
|
{
|
|
clipboard_fileAcquired(dataset, acquisition,
|
|
LG_CLIPBOARD_FILE_ERROR_NOT_SUPPORTED);
|
|
}
|
|
|
|
void clipboardFiles_localRelease(uint64_t dataset,
|
|
uint64_t acquisition)
|
|
{
|
|
(void)dataset;
|
|
(void)acquisition;
|
|
}
|
|
|
|
void clipboardFiles_localRequest(
|
|
const LG_ClipboardFileRequest * request)
|
|
{
|
|
if (!request)
|
|
return;
|
|
|
|
clipboard_fileCancel(request->dataset, request->request,
|
|
LG_CLIPBOARD_FILE_ERROR_NOT_SUPPORTED);
|
|
}
|
|
|
|
void clipboardFiles_localCancel(uint64_t dataset,
|
|
uint64_t request, LG_ClipboardFileError reason)
|
|
{
|
|
(void)dataset;
|
|
(void)request;
|
|
(void)reason;
|
|
}
|
|
|
|
void clipboardFiles_localReady(uint64_t request)
|
|
{
|
|
(void)request;
|
|
}
|