Loading...
Searching...
No Matches
result.h
/* librepo - A library providing (libcURL like) API to downloading repository
* Copyright (C) 2012 Tomas Mlcoch
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __LR_RESULT_H__
#define __LR_RESULT_H__
#include <glib.h>
#include <librepo/types.h>
G_BEGIN_DECLS
typedef struct _LrResult LrResult;
typedef enum {
LRR_YUM_REPO,
LRR_YUM_REPOMD,
LRR_YUM_TIMESTAMP,
LRR_RPMMD_REPO,
LRR_RPMMD_REPOMD,
LRR_RPMMD_TIMESTAMP,
LRR_SENTINEL,
} LrResultInfoOption;
LrResult *
lr_result_init(void);
void
lr_result_clear(LrResult *result);
void
lr_result_free(LrResult *result);
gboolean
lr_result_getinfo(LrResult *result,
GError **err,
LrResultInfoOption option,
...);
G_END_DECLS
#endif
lr_result_clear
void lr_result_clear(LrResult *result)
lr_result_free
void lr_result_free(LrResult *result)
LrResultInfoOption
LrResultInfoOption
Definition result.h:41
lr_result_getinfo
gboolean lr_result_getinfo(LrResult *result, GError **err, LrResultInfoOption option,...)
lr_result_init
LrResult * lr_result_init(void)
LrResult
struct _LrResult LrResult
Definition result.h:37
LRR_RPMMD_REPO
@ LRR_RPMMD_REPO
Definition result.h:53
LRR_YUM_TIMESTAMP
@ LRR_YUM_TIMESTAMP
Definition result.h:48
LRR_RPMMD_REPOMD
@ LRR_RPMMD_REPOMD
Definition result.h:54
LRR_YUM_REPOMD
@ LRR_YUM_REPOMD
Definition result.h:45
LRR_RPMMD_TIMESTAMP
@ LRR_RPMMD_TIMESTAMP
Definition result.h:55
LRR_YUM_REPO
@ LRR_YUM_REPO
Definition result.h:42