libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] type mismatch in header files...


From: Robert William Fuller
Subject: [Libcdio-devel] type mismatch in header files...
Date: Thu, 08 May 2008 11:13:41 -0400
User-agent: Thunderbird 2.0.0.6 (X11/20071019)

Correct me if I'm wrong.... If not, I'll fix it. It's fine until you try to compile something as C++ that calls mmc_run_*.

from mmc.h:

  int mmc_run_cmd( const CdIo_t *p_cdio, unsigned int i_timeout_ms,
                   const mmc_cdb_t *p_cdb,
                   cdio_mmc_direction_t e_direction, unsigned int i_buf,
                   /*in/out*/ void *p_buf );

from mmc.c:

driver_return_code_t
mmc_run_cmd( const CdIo_t *p_cdio, unsigned int i_timeout_ms,
                  const mmc_cdb_t *p_cdb,
                  cdio_mmc_direction_t e_direction, unsigned int i_buf,
                  /*in/out*/ void *p_buf )
{
  if (!p_cdio) return DRIVER_OP_UNINIT;
  if (!p_cdio->op.run_mmc_cmd) return DRIVER_OP_UNSUPPORTED;
  return p_cdio->op.run_mmc_cmd(p_cdio->env, i_timeout_ms,
                                     mmc_get_cmd_len(p_cdb->field[0]),
                                     p_cdb, e_direction, i_buf, p_buf);
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]