Beispiel #1
0
HTTP_CODE sync_request_by_type(WEIBO_API_TYPE type,
                                     weibo_param param,
                                     string& data)
{
    string url;

    url = weibo_get_url(type);

    if (url == "" ) {
        return HTTP_OPTION_ERR;
    }

    return sync_request(url, weibo_get_http_method(type), param, data);
}
Beispiel #2
0
static int bdev_readpage(void *_sb, struct page *page)
{
	struct super_block *sb = _sb;
	struct block_device *bdev = logfs_super(sb)->s_bdev;
	int err;

	err = sync_request(page, bdev, READ);
	if (err) {
		ClearPageUptodate(page);
		SetPageError(page);
	} else {
		SetPageUptodate(page);
		ClearPageError(page);
	}
	unlock_page(page);
	return err;
}
Beispiel #3
0
int fd_sync_request(blkreq_t *req)
{
	return sync_request(req);
}