|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
Copyright (C) 2011 ABRT Team
|
|
Packit |
8ea169 |
Copyright (C) 2011 RedHat inc.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
8ea169 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
8ea169 |
the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
8ea169 |
(at your option) any later version.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
8ea169 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ea169 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8ea169 |
GNU General Public License for more details.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
You should have received a copy of the GNU General Public License along
|
|
Packit |
8ea169 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
8ea169 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#ifndef ABRT_CLI_CORE_H_
|
|
Packit |
8ea169 |
#define ABRT_CLI_CORE_H_
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#include "problem_api.h"
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/* Use authenticate D-Bus methods. The authentication requires a polkit agent
|
|
Packit |
8ea169 |
* to finish an authenticated method successfully. */
|
|
Packit |
8ea169 |
extern int g_cli_authenticate;
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
typedef GPtrArray vector_of_problem_data_t;
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
problem_data_t *get_problem_data(vector_of_problem_data_t *vector, unsigned i);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
void free_vector_of_problem_data(vector_of_problem_data_t *vector);
|
|
Packit |
8ea169 |
vector_of_problem_data_t *new_vector_of_problem_data(void);
|
|
Packit |
8ea169 |
vector_of_problem_data_t *fetch_crash_infos(void);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/* Returns malloced string, or NULL if not found: */
|
|
Packit |
8ea169 |
char *find_problem_by_hash(const char *hash, GList *problems);
|
|
Packit |
8ea169 |
/* Returns malloced string, or NULL if not found: */
|
|
Packit |
8ea169 |
char *hash2dirname(const char *hash);
|
|
Packit |
8ea169 |
/* If input looks like a hash, returns malloced string, or NULL if not found.
|
|
Packit |
8ea169 |
* Otherwise returns a copy of the input. */
|
|
Packit |
8ea169 |
char *hash2dirname_if_necessary(const char *input);
|
|
Packit |
8ea169 |
/* Initialize a new polkit text agent in a new thread */
|
|
Packit |
8ea169 |
void initialize_polkit_agent(void);
|
|
Packit |
8ea169 |
/* Uninitialize the polkit text agent */
|
|
Packit |
8ea169 |
void uninitialize_polkit_agent(void);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#endif /* ABRT_CLI_CORE_H_ */
|