File: ops.h

package info (click to toggle)
console-apt 0.7.7.2potato2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 612 kB
  • ctags: 658
  • sloc: cpp: 6,883; sh: 152; makefile: 47
file content (33 lines) | stat: -rw-r--r-- 634 bytes parent folder | download
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

#ifndef _misc_H
#define _misc_H

#define SEARCH_CASE   0x1
#define SEARCH_DESC   0x2
#define SEARCH_REGEX  0x4

#define bitcheck(x, y)        (x & y)
#define bitset(x, y)          (x |= y)
#define bitclear(x, y)        (x &= ~y)

#include <regex.h>

namespace TextOp
{
	enum opType
	{ none, upgrade, update, install, remove, purge };
	extern bool CacheInit;
	extern bool BrokenFix;
	extern unsigned opRealCount;

	void PrepareOp(opType, string);
	void Install(string);
	void Remove(string, bool);
};

#include <func/keys.h>

void HelpDialog();
int search_string(const char *, char *, unsigned long, regex_t *);

#endif /* _misc_H */