~ubuntubudgie-dev/tasksel/ubuntu-budgie-tasksel-proposal.zesty

« back to all changes in this revision

Viewing changes to data.h

  • Committer: Joey Hess
  • Date: 2001-05-18 02:02:02 UTC
  • Revision ID: git-v1:9aadd503b5a19ad2c7d4790e7af67660cb60d557
My changes:
  * Added support for task description files.
  * Read in /usr/share/tasksel/debian-tasks.desc as a task description
    file.
  * Added makedesc.pl, a program to generate a task description file from
    a set of task descriptions.
  * Got rid of all the name prettification code since it is no longer used
    anyway.
  * Killed filterdescription, the task packages in woody actually don't
    have that problem anymore.
  * Don't move cursor to the right after a task is selected.
  * Removed unused tasksel.man from source package (keep pod).
  * Fixed an obscure bug if a task package happened to be the last thing in
    the available file.
  * Enable debug mode by default, but turn it off when building from the
    rules file.

Aj's changes:
  * Use "Section:" fields to break tasks into different sections. Have a
    hardcoded list of default sections, with a defined order; remaining
    sections get added to the end, in alphabetical order. Sections that
    don't match "tasks-*" are ignored.
  * "tasksel install foo bar baz" as a replacement for "apt-get install
    task-foo task-bar task-baz"
  * Increase the size of the "apt-get install" command line buffer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: data.h,v 1.5 2001/04/24 06:35:07 tausq Exp $ */
 
1
/* $Id: data.h,v 1.6 2001/05/18 02:02:02 joeyh Exp $ */
2
2
#ifndef _DATA_H
3
3
#define _DATA_H
4
4
 
13
13
 
14
14
struct package_t {
15
15
  char *name;
16
 
  char *prettyname;
17
16
  char *shortdesc;
18
17
  char *longdesc;
19
18
  int dependscount;
22
21
  char **recommends;
23
22
  int suggestscount;
24
23
  char **suggests;
 
24
  char *section;
25
25
  priority_t priority;
26
26
  int selected;
 
27
  int pseudopackage;
27
28
};
28
29
 
29
30
struct packages_t {
30
31
  int count;
31
 
  int maxnamelen;
32
32
  void *packages;
33
33
};
34
34
 
35
35
struct task_t {
36
36
  char *name;
37
 
  char *prettyname;
38
37
  struct package_t *task_pkg;
39
38
  char **packages;
40
39
  int packagescount;
44
43
 
45
44
struct tasks_t {
46
45
  int count;
47
 
  int maxnamelen;
48
46
  void *tasks;
49
47
};
50
48
 
51
 
/* Reads in a list of package and package descriptions */
 
49
/* Reads in a list of tasks from task description file */
 
50
void taskfile_read(char *fn, struct tasks_t *tasks, struct packages_t *pkgs);
 
51
/* Reads in a list of package and package descriptions from available file */
52
52
void packages_readlist(struct tasks_t *tasks, struct packages_t *packages);
53
53
/* free memory allocated to store packages */
54
54
void packages_free(struct tasks_t *tasks, struct packages_t *packages);
55
55
 
56
56
struct package_t *packages_find(const struct packages_t *packages, const char *name);
 
57
struct task_t *tasks_find(const struct tasks_t *tasks, const char *name);
57
58
struct package_t **packages_enumerate(const struct packages_t *packages);
58
59
struct task_t **tasks_enumerate(const struct tasks_t *tasks);
59
60