/usr/include/libsocialweb/libsocialweb/sw-web.h is in libsocialweb-dev 0.25.20-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 | /*
* libsocialweb - social data store
* Copyright (C) 2008 - 2009 Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include <libsocialweb/sw-core.h>
#include <libsoup/soup.h>
SoupSession * sw_web_make_sync_session (void);
SoupSession * sw_web_make_async_session (void);
char * sw_web_download_image (const char *url);
/*
* @url: the URL you requested
* @file: the local file if the download was successful, otherwise NULL
*/
typedef void (*ImageDownloadCallback) (const char *url,
char *file,
gpointer user_data);
void sw_web_download_image_async (const char *url,
ImageDownloadCallback callback,
gpointer user_data);
|