Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/cap/cap.h

    r09d01f2 rc1f68b0  
    3636#define KERN_CAP_H_
    3737
    38 #include <abi/cap.h>
    3938#include <typedefs.h>
    4039#include <adt/list.h>
     
    4544#include <atomic.h>
    4645
     46typedef int cap_handle_t;
     47
    4748typedef enum {
    4849        CAP_STATE_FREE,
     
    5253
    5354typedef enum {
    54         KOBJECT_TYPE_CALL,
     55        KOBJECT_TYPE_PHONE,
    5556        KOBJECT_TYPE_IRQ,
    56         KOBJECT_TYPE_PHONE,
    5757        KOBJECT_TYPE_MAX
    5858} kobject_type_t;
    5959
    6060struct task;
    61 
    62 struct call;
     61struct phone;
    6362struct irq;
    64 struct phone;
    6563
    6664struct kobject;
     
    8179        union {
    8280                void *raw;
    83                 struct call *call;
     81                struct phone *phone;
    8482                struct irq *irq;
    85                 struct phone *phone;
    8683        };
    8784} kobject_t;
     
    121118    bool (*)(cap_t *, void *), void *);
    122119
    123 extern int cap_alloc(struct task *, cap_handle_t *);
     120extern cap_handle_t cap_alloc(struct task *);
    124121extern void cap_publish(struct task *, cap_handle_t, kobject_t *);
    125122extern kobject_t *cap_unpublish(struct task *, cap_handle_t, kobject_type_t);
Note: See TracChangeset for help on using the changeset viewer.