Changeset 18545
- Timestamp:
- 11/11/12 16:58:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/cadev.h
r18524 r18545 118 118 } 119 119 120 int cagetdesc(struct dvbdev* node )120 int cagetdesc(struct dvbdev* node, struct ca_descr *descr) 121 121 { 122 122 if(node == NULL) … … 127 127 128 128 debug(200, "CA_GET_DESCR_INFO"); 129 if(ioctl(node->fd, CA_GET_DESCR_INFO ) < 0)129 if(ioctl(node->fd, CA_GET_DESCR_INFO, descr) < 0) 130 130 { 131 131 perr("CA_GET_DESCR_INFO"); … … 136 136 } 137 137 138 int casetpid(struct dvbdev* node) 138 int casetdesc(struct dvbdev* node, struct ca_descr *descr) 139 { 140 if(node == NULL) 141 { 142 debug(1000, "out-> NULL detect"); 143 return 1; 144 } 145 146 debug(200, "CA_SET_DESCR"); 147 if(ioctl(node->fd, CA_SET_DESCR, descr) < 0) 148 { 149 perr("CA_SET_DESCR"); 150 return 1; 151 } 152 153 return 0; 154 } 155 156 int casetpid(struct dvbdev* node, struct ca_pid *pid) 139 157 { 140 158 if(node == NULL) … … 145 163 146 164 debug(200, "CA_SET_PID"); 147 if(ioctl(node->fd, CA_SET_PID ) < 0)165 if(ioctl(node->fd, CA_SET_PID, pid) < 0) 148 166 { 149 167 perr("CA_SET_PID");
Note: See TracChangeset
for help on using the changeset viewer.