permission

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Raw CGo bindings for Android Permission Manager

Index

Constants

View Source
const (
	PERMISSION_MANAGER_PERMISSION_GRANTED = 0
	PERMISSION_MANAGER_PERMISSION_DENIED  = -1
)
View Source
const (
	PERMISSION_MANAGER_STATUS_OK                  = 0
	PERMISSION_MANAGER_STATUS_ERROR_UNKNOWN       = -1
	PERMISSION_MANAGER_STATUS_SERVICE_UNAVAILABLE = -2
)

Variables

This section is empty.

Functions

func APermissionManager_checkPermission

func APermissionManager_checkPermission(permission string, pid Pid_t, uid Uid_t, outResult *int32) int32

Types

type CgoAllocMap

type CgoAllocMap struct {
	// contains filtered or unexported fields
}

CgoAllocMap stores pointers to C allocated memory for future reference.

func UnpackPCharString

func UnpackPCharString(str string) (*C.char, *CgoAllocMap)

UnpackPCharString copies the data from Go string as *C.char.

func (*CgoAllocMap) Add

func (a *CgoAllocMap) Add(ptr unsafe.Pointer)

func (*CgoAllocMap) Borrow

func (a *CgoAllocMap) Borrow(b *CgoAllocMap)

func (*CgoAllocMap) Free

func (a *CgoAllocMap) Free()

func (*CgoAllocMap) IsEmpty

func (a *CgoAllocMap) IsEmpty() bool

type Pid_t

type Pid_t C.pid_t

type SliceHeader

type SliceHeader struct {
	Data unsafe.Pointer
	Len  int
	Cap  int
}

type Uid_t

type Uid_t C.uid_t

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL