Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: src/trusted/service_runtime/name_service/name_service.h

Issue 7108031: this patch adds the manifest proxy server to sel_ldr and the manifest (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_
9 9
10 #include "native_client/src/include/nacl_base.h" 10 #include "native_client/src/include/nacl_base.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 }; 50 };
51 51
52 int NaClNameServiceCtor(struct NaClNameService *self, 52 int NaClNameServiceCtor(struct NaClNameService *self,
53 NaClThreadIfFactoryFunction thread_factory_fn, 53 NaClThreadIfFactoryFunction thread_factory_fn,
54 void *thread_factory_data); 54 void *thread_factory_data);
55 55
56 int NaClNameServiceCreateDescEntry( 56 int NaClNameServiceCreateDescEntry(
57 struct NaClNameService *self, 57 struct NaClNameService *self,
58 char const *name, 58 char const *name,
59 int mode, 59 int mode,
60 struct NaClDesc *new_desc); /* takes new ref */ 60 struct NaClDesc *new_desc); /* takes ownership of ref */
61 61
62 typedef int (*NaClNameServiceFactoryFn_t)(void *factory_state, 62 typedef int (*NaClNameServiceFactoryFn_t)(void *factory_state,
63 char const *name, 63 char const *name,
64 int flags, 64 int flags,
65 struct NaClDesc **out); 65 struct NaClDesc **out);
66 66
67 int NaClNameServiceCreateFactoryEntry( 67 int NaClNameServiceCreateFactoryEntry(
68 struct NaClNameService *self, 68 struct NaClNameService *self,
69 char const *name, 69 char const *name,
70 /* 70 /*
(...skipping 26 matching lines...) Expand all
97 * indicate the reason for failure. The set of possible failures is 97 * indicate the reason for failure. The set of possible failures is
98 * in src/trusted/service_runtime/include/sys/nacl_name_service.h. 98 * in src/trusted/service_runtime/include/sys/nacl_name_service.h.
99 * 99 *
100 * They don't really have to be virtual, but this makes it easier to 100 * They don't really have to be virtual, but this makes it easier to
101 * subclass and modify later, should the need occur. 101 * subclass and modify later, should the need occur.
102 */ 102 */
103 int (*CreateDescEntry)( 103 int (*CreateDescEntry)(
104 struct NaClNameService *self, 104 struct NaClNameService *self,
105 char const *name, 105 char const *name,
106 int mode, 106 int mode,
107 struct NaClDesc *new_desc); /* takes new ref */ 107 struct NaClDesc *new_desc); /* takes ownership of ref */
108 int (*CreateFactoryEntry)( 108 int (*CreateFactoryEntry)(
109 struct NaClNameService *self, 109 struct NaClNameService *self,
110 char const *name, 110 char const *name,
111 NaClNameServiceFactoryFn_t factory_fn, 111 NaClNameServiceFactoryFn_t factory_fn,
112 void *factory_state); 112 void *factory_state);
113 int (*ResolveName)( 113 int (*ResolveName)(
114 struct NaClNameService *self, 114 struct NaClNameService *self,
115 char const *name, 115 char const *name,
116 int flags, 116 int flags,
117 struct NaClDesc **out); 117 struct NaClDesc **out);
(...skipping 18 matching lines...) Expand all
136 }; 136 };
137 137
138 extern struct NaClNameServiceVtbl kNaClNameServiceVtbl; 138 extern struct NaClNameServiceVtbl kNaClNameServiceVtbl;
139 139
140 void NaClNameServiceLaunch(struct NaClNameService *self); 140 void NaClNameServiceLaunch(struct NaClNameService *self);
141 141
142 EXTERN_C_END 142 EXTERN_C_END
143 143
144 #endif 144 #endif
145 /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_ */ 145 /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NAME_SERVICE_NAME_SERVICE_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698