~ubuntu-branches/debian/stretch/uswsusp/stretch

« back to all changes in this revision

Viewing changes to .pc/uswsusp_rename.patch/config_parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Rodolfo García Peñas (kix), Rodolfo García Peñas (kix), Closes: #552484, #576803, #528483, Closes: #495111, #595125, #486352, #433872, #590233, Closes: #550725, #549118, Closes: #437094, #586674, #547158, #567604, Closes: #520705, Anibal Monsalve Salazar
  • Date: 2011-03-14 08:26:16 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110314082616-7mjcl6tfzsv22arm
Tags: 1.0-1
[ Rodolfo García Peñas (kix) ]
* New 1.0 version [Closes: #589743, #578496, #617534]
* A lot of new machines. 
  [Closes: #552484, #576803, #528483] 
  [Closes: #495111, #595125, #486352, #433872, #590233] 
* A new length for addressing 
  [Closes: #550725, #549118]
  (http://lkml.org/lkml/2009/11/3/377)
* Support for Kernel Mode Set (KMS) 
  [Closes: #437094, #586674, #547158, #567604]
* Switch to dpkg-source 3.0 (quilt) format
* Compiled without splash support. 
  libsplash is not included in stable, many bugs.
* Moved the manpage file "suspend.conf.8" to manual section 5.
  [Closes: #520705]

[ Anibal Monsalve Salazar ]
* Update uploaders list

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * config_parser.h
 
3
 *
 
4
 * Configuration file-related definitions for user space suspend and resume
 
5
 * tools.
 
6
 *
 
7
 * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl>
 
8
 *
 
9
 * This file is released under the GPLv2.
 
10
 *
 
11
 */
 
12
 
 
13
#include <getopt.h>
 
14
 
 
15
#define MAX_STR_LEN     256
 
16
 
 
17
struct config_par {
 
18
        char *name;     /* NULL on last record */
 
19
        char *fmt;
 
20
        void *ptr;
 
21
        unsigned int len;
 
22
};
 
23
 
 
24
int parse_line(char *str, struct config_par *parv);
 
25
int parse(char *my_name, char *file_name, struct config_par *parv);
 
26
 
 
27
void usage(char *my_name, struct option options[], const char *short_options);
 
28
void version(char *my_name, char *extra_version);
 
29
 
 
30
#define CONFIG_FILE     "/etc/suspend.conf"