~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to filter/banner.c

  • Committer: Package Import Robot
  • Author(s): Didier Raboud
  • Date: 2015-01-15 18:06:05 UTC
  • mfrom: (1.2.25)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: package-import@ubuntu.com-20150115180605-fnfbqv85k3y5zggk
Tags: upstream-1.0.62
ImportĀ upstreamĀ versionĀ 1.0.62

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
}
123
123
 
124
124
 
125
 
banner_t * banner_new_from_file(const char *filename)
 
125
banner_t * banner_new_from_file(const char *filename,
 
126
        int *num_options, cups_option_t **options)
126
127
{
127
128
    FILE *f;
128
129
    char *line = NULL;
161
162
            banner->header = strdup(value);
162
163
        else if (!strcasecmp(key, "footer"))
163
164
            banner->header = strdup(value);
 
165
        else if (!strcasecmp(key, "font")) {
 
166
            *num_options = cupsAddOption("banner-font",
 
167
                    strdup(value), *num_options, options);
 
168
        }
 
169
        else if (!strcasecmp(key, "font-size")) {
 
170
            *num_options = cupsAddOption("banner-font-size",
 
171
                    strdup(value), *num_options, options);
 
172
        }
164
173
        else if (!strcasecmp(key, "show"))
165
174
            banner->infos = parse_show(value);
166
175
        else if (!strcasecmp(key, "image") ||