Defining DFC behavior  Sample C code to acquire AIM DFC definitions

Chapter 2: Developing Custom Applications

Global data structures

To set global data structures within the application, use the following C functions to access the data structure:

You must create a data structure around the global data (data to be made available to another C code) and use corresponding type casting when accessing the data using the functions defined above. If the data is dynamically allocated, you are responsible for clean up. clearUserImpactData() does not perform deallocation.

NoteThe plug-in class also provides and supports eight utility functions: GetCwd(), ChangeCwd(), Access(), Open(), FileOpen(), Unlink(), Stat(), and erm().





Copyright © 2005. Sybase Inc. All rights reserved. Sample C code to acquire AIM DFC definitions

View this book as PDF