home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / dbd_xsh.h < prev    next >
Encoding:
Text File  |  2003-02-26  |  2.5 KB  |  50 lines

  1. /* @(#)$Id: dbd_xsh.h,v 11.3 2003/02/26 17:56:01 timbo Exp $
  2.  *
  3.  * Copyright 2000-2002 Tim Bunce
  4.  * Copyright 2002      Jonathan Leffler
  5.  *
  6.  * These prototypes are for dbdimp.c funcs used in the XS file.
  7.  * These names are #defined to driver specific names by the
  8.  * dbdimp.h file in the driver source.
  9.  */
  10.  
  11. void     dbd_init _((dbistate_t *dbistate));
  12.  
  13. int      dbd_discon_all _((SV *drh, imp_drh_t *imp_drh));
  14.  
  15. /* Support for dbd_dr_data_sources and dbd_db_do added to Driver.xst in DBI v1.33 */
  16. /* dbd_dr_data_sources: optional: defined by a driver that calls a C */
  17. /* function to get the list of data sources */
  18. AV    *dbd_dr_data_sources(SV *drh, imp_drh_t *imp_drh, SV *attrs);
  19.  
  20. int      dbd_db_login6 _((SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *uid, char *pwd, SV*attribs));
  21. int      dbd_db_login  _((SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *uid, char *pwd)); /* deprecated */
  22. /* Note: interface of dbd_db_do changed in v1.33 */
  23. /* Old prototype: dbd_db_do _((SV *sv, char *statement)); */
  24. /* dbd_db_do: optional: defined by a driver if the DBI default version is too slow */
  25. int      dbd_db_do4 _((SV *dbh, imp_dbh_t *imp_dbh, char *statement, SV *params));
  26. int      dbd_db_commit     _((SV *dbh, imp_dbh_t *imp_dbh));
  27. int      dbd_db_rollback   _((SV *dbh, imp_dbh_t *imp_dbh));
  28. int      dbd_db_disconnect _((SV *dbh, imp_dbh_t *imp_dbh));
  29. void     dbd_db_destroy    _((SV *dbh, imp_dbh_t *imp_dbh));
  30. int      dbd_db_STORE_attrib _((SV *dbh, imp_dbh_t *imp_dbh, SV *keysv, SV *valuesv));
  31. SV      *dbd_db_FETCH_attrib _((SV *dbh, imp_dbh_t *imp_dbh, SV *keysv));
  32.  
  33. int      dbd_st_prepare _((SV *sth, imp_sth_t *imp_sth, char *statement, SV *attribs));
  34. int      dbd_st_rows    _((SV *sth, imp_sth_t *imp_sth));
  35. int      dbd_st_execute _((SV *sth, imp_sth_t *imp_sth));
  36. AV      *dbd_st_fetch   _((SV *sth, imp_sth_t *imp_sth));
  37. int      dbd_st_finish3 _((SV *sth, imp_sth_t *imp_sth, int from_destroy));
  38. int      dbd_st_finish  _((SV *sth, imp_sth_t *imp_sth)); /* deprecated */
  39. void     dbd_st_destroy _((SV *sth, imp_sth_t *imp_sth));
  40. int      dbd_st_blob_read _((SV *sth, imp_sth_t *imp_sth,
  41.                 int field, long offset, long len, SV *destrv, long destoffset));
  42. int      dbd_st_STORE_attrib _((SV *sth, imp_sth_t *imp_sth, SV *keysv, SV *valuesv));
  43. SV      *dbd_st_FETCH_attrib _((SV *sth, imp_sth_t *imp_sth, SV *keysv));
  44.  
  45. int      dbd_bind_ph  _((SV *sth, imp_sth_t *imp_sth,
  46.                 SV *param, SV *value, IV sql_type, SV *attribs,
  47.                 int is_inout, IV maxlen));
  48.  
  49. /* end of dbd_xsh.h */
  50.