File: utils.h

package info (click to toggle)
packagekit 1.2.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,224 kB
  • sloc: ansic: 52,083; cpp: 10,938; xml: 4,828; python: 3,791; sh: 269; perl: 60; makefile: 53
file content (32 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (4)
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
#ifndef __SLACK_UTILS_H
#define __SLACK_UTILS_H

#include <curl/curl.h>
#include <pk-backend.h>
#include <pk-backend-job.h>

namespace slack {

struct JobData
{
	GObjectClass parent_class;

	sqlite3 *db;
	CURL *curl;
};

CURLcode get_file (CURL **curl, gchar *source_url, gchar *dest);

gchar **split_package_name (const gchar *pkg_filename);

PkInfoEnum is_installed (const gchar *pkg_fullname);

extern "C" {

gint cmp_repo (gconstpointer a, gconstpointer b);

}

}

#endif /* __SLACK_UTILS_H */