11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

static int ucount =sizeof (ufuncs) / sizeof (struct fnc_data);sm_install (SCROLL_FUNC, ufuncs, &ucount);If no default scrolling driver is installed, Panther uses its own scroll driver.Scroll Driver InterfaceAll scroll drivers have a single entry point. Panther passes the driver two parameters.The first is a pointer to an altsc_t structure; the second parameter is an operationcode, indicating what action Panther needs the scrolling driver to perform. Followingis an example definition of a scrolling driver:intscroll_driver (as_ptr, action_code)altsc_t *as_ptr;int action_code;The altsc_t StructureTable A-1 The altsc_t structureA pointer to an altsc_t structure is the first parameter to a scroll driver. Table A-1describes the altsc_t structure.Member name Description TypeDriver-maintained information:scrolldataScrolling information:*Pointer to structure maintained bydriver.VOIDPTRluid ID of the largest-used occurrence unsigned intmax_items Maximum number of occurrence unsigned intshs Largest non-blank occurrence unsigned intOccurrence information:item Occurrence number unsigned int<strong>Upgrade</strong> <strong>Guide</strong> A-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!