! * \brief kernelGetParameters() * * \param[in] kel kernel * \param[out] psy, psx, pcy, pcx [optional] each can be null * \return 0 if OK, 1 on error */
| 267 | * \return 0 if OK, 1 on error |
| 268 | */ |
| 269 | l_int32 |
| 270 | kernelGetParameters(L_KERNEL *kel, |
| 271 | l_int32 *psy, |
| 272 | l_int32 *psx, |
| 273 | l_int32 *pcy, |
| 274 | l_int32 *pcx) |
| 275 | { |
| 276 | PROCNAME("kernelGetParameters"); |
| 277 | |
| 278 | if (psy) *psy = 0; |
| 279 | if (psx) *psx = 0; |
| 280 | if (pcy) *pcy = 0; |
| 281 | if (pcx) *pcx = 0; |
| 282 | if (!kel) |
| 283 | return ERROR_INT("kernel not defined", procName, 1); |
| 284 | if (psy) *psy = kel->sy; |
| 285 | if (psx) *psx = kel->sx; |
| 286 | if (pcy) *pcy = kel->cy; |
| 287 | if (pcx) *pcx = kel->cx; |
| 288 | return 0; |
| 289 | } |
| 290 | |
| 291 | |
| 292 | /*! |
no outgoing calls
no test coverage detected