#include "native_client/src/include/portability.h"
#include "native_client/src/include/elf.h"
+#include "native_client/src/public/nacl_app.h"
+
#include "native_client/src/shared/platform/nacl_host_desc.h"
#include "native_client/src/shared/platform/nacl_log.h"
#include "native_client/src/shared/platform/nacl_threads.h"
* The caller is responsible for invoking NaClDescUnref() on it when
* done.
*/
-struct NaClDesc *NaClGetDesc(struct NaClApp *nap,
- int d);
-
-/*
- * Takes ownership of ndp.
- */
-void NaClSetDesc(struct NaClApp *nap,
- int d,
- struct NaClDesc *ndp);
+struct NaClDesc *NaClAppGetDesc(struct NaClApp *nap,
+ int d);
+/* NaClAppSetDesc() is defined in src/public/chrome_main.h. */
-int32_t NaClSetAvail(struct NaClApp *nap,
- struct NaClDesc *ndp);
+int32_t NaClAppSetDescAvail(struct NaClApp *nap,
+ struct NaClDesc *ndp);
/*
* Versions that are called while already holding the desc_mu lock
*/
-struct NaClDesc *NaClGetDescMu(struct NaClApp *nap,
- int d);
+struct NaClDesc *NaClAppGetDescMu(struct NaClApp *nap,
+ int d);
-void NaClSetDescMu(struct NaClApp *nap,
- int d,
- struct NaClDesc *ndp);
+void NaClAppSetDescMu(struct NaClApp *nap,
+ int d,
+ struct NaClDesc *ndp);
-int32_t NaClSetAvailMu(struct NaClApp *nap,
- struct NaClDesc *ndp);
+int32_t NaClAppSetDescAvailMu(struct NaClApp *nap,
+ struct NaClDesc *ndp);
int NaClAddThread(struct NaClApp *nap,