Mercurial > mplayer.hg
comparison libmpdvdkit2/libdvdcss.c @ 20415:8e6981e8f50a
Sync cosmetics from upstream libdvdcss.
author | diego |
---|---|
date | Tue, 24 Oct 2006 17:30:11 +0000 |
parents | e5d97c5f3c32 |
children | cef706926f20 |
comparison
equal
deleted
inserted
replaced
20414:06a95dbdacc5 | 20415:8e6981e8f50a |
---|---|
157 * Initialize the \e libdvdcss library and open the requested DVD device or | 157 * Initialize the \e libdvdcss library and open the requested DVD device or |
158 * directory. \e libdvdcss checks whether ioctls can be performed on the disc, | 158 * directory. \e libdvdcss checks whether ioctls can be performed on the disc, |
159 * and when possible, the disc key is retrieved. | 159 * and when possible, the disc key is retrieved. |
160 * | 160 * |
161 * dvdcss_open() returns a handle to be used for all subsequent \e libdvdcss | 161 * dvdcss_open() returns a handle to be used for all subsequent \e libdvdcss |
162 * calls. If an error occured, NULL is returned. | 162 * calls. If an error occurred, NULL is returned. |
163 */ | 163 */ |
164 extern dvdcss_t dvdcss_open ( char *psz_target ) | 164 extern dvdcss_t dvdcss_open ( char *psz_target ) |
165 { | 165 { |
166 char psz_buffer[PATH_MAX]; | 166 char psz_buffer[PATH_MAX]; |
167 int i_ret; | 167 int i_ret; |
548 | 548 |
549 return dvdcss; | 549 return dvdcss; |
550 } | 550 } |
551 | 551 |
552 /** | 552 /** |
553 * \brief Return a string containing the latest error that occured in the | 553 * \brief Return a string containing the latest error that occurred in the |
554 * given \e libdvdcss instance. | 554 * given \e libdvdcss instance. |
555 * | 555 * |
556 * \param dvdcss a \e libdvdcss instance. | 556 * \param dvdcss a \e libdvdcss instance. |
557 * \return a null-terminated string containing the latest error message. | 557 * \return a null-terminated string containing the latest error message. |
558 * | 558 * |
559 * This function returns a constant string containing the latest error that | 559 * This function returns a constant string containing the latest error that |
560 * occured in \e libdvdcss. It can be used to format error messages at your | 560 * occurred in \e libdvdcss. It can be used to format error messages at your |
561 * convenience in your application. | 561 * convenience in your application. |
562 */ | 562 */ |
563 extern char * dvdcss_error ( dvdcss_t dvdcss ) | 563 extern char * dvdcss_error ( dvdcss_t dvdcss ) |
564 { | 564 { |
565 return dvdcss->psz_error; | 565 return dvdcss->psz_error; |