~ubuntu-branches/debian/stretch/sg3-utils/stretch

« back to all changes in this revision

Viewing changes to include/sg_cmds_basic.h

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-08-09 16:36:28 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110809163628-yh8okvhe20j5rekq
Tags: 1.32-1
* [06cef8d] Use kfreebsd-any as the build-dep.
  Thanks to Robert Millan (Closes: 634362)
* [850586d] separate build-arch and build-indep targets
* [a432747] Drop duplicate changelog
* [ec2bbd8] Update Standards Version to 3.9.2. No changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
 
233
233
struct sg_pt_base;
234
234
 
235
 
/* This is a helper function used by all sg_cmds_* implementations.
 
235
/* This is a helper function used by sg_cmds_* implementations after
 
236
 * the call to the pass-through. pt_res is returned from do_scsi_pt().
236
237
 * If valid sense data is found it is decoded and output to sg_warnings_strm
237
238
 * (def: stderr); depending on the 'noisy' and 'verbose' settings.
238
239
 * Returns -2 for sense data (may not be fatal), -1 for failed or the
241
242
 * output via 'o_sense_cat' pointer (if not NULL). Note that several sense
242
243
 * categories also have data in bytes received; -2 is still returned. */
243
244
extern int sg_cmds_process_resp(struct sg_pt_base * ptvp, const char * leadin,
244
 
                                int res, int mx_di_len,
 
245
                                int pt_res, int mx_di_len,
245
246
                                const unsigned char * sense_b, int noisy,
246
247
                                int verbose, int * o_sense_cat);
247
248