provider_package.h File Reference

Provider package util APIs. More...


Functions

const char * provider_package_get_mount_dir (void)
 Retrieves the mount location of the current package.
const char * provider_package_get_name (void)
 Retrieves the package name associated with the current process.


Detailed Description

Provider package util APIs.

These functions allow users to get package-specific information.


Function Documentation

const char* provider_package_get_mount_dir void   ) 
 

Retrieves the mount location of the current package.

This function reads the mount location of the package associated with the current process, and returns it as a const char pointer.

Returns:
The package mount location; otherwise returns NULL

const char* provider_package_get_name void   ) 
 

Retrieves the package name associated with the current process.

Parameters:
[out] pkg_name Buffer to store the package name
[in] size Size of the buffer
Returns:
0 on success; -1 on error errno will be set to one of the following values:
  • EINVAL Invalid argument


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:24:05 2010 for libprovider by Doxygen 1.4.5