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

Side by Side Diff: src/shared/gio/gio.h

Issue 12226119: Factor out duplicated GioMemoryFileSnapshotCtor() + NaClAppLoadFile() calls (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | src/shared/gio/gio_mem_snapshot.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 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 /* 7 /*
8 * NaCl Generic I/O interface. 8 * NaCl Generic I/O interface.
9 */ 9 */
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 int GioMemoryFileClose(struct Gio *vself); 160 int GioMemoryFileClose(struct Gio *vself);
161 161
162 void GioMemoryFileDtor(struct Gio *vself); 162 void GioMemoryFileDtor(struct Gio *vself);
163 163
164 struct GioMemoryFileSnapshot { 164 struct GioMemoryFileSnapshot {
165 struct GioMemoryFile base; 165 struct GioMemoryFile base;
166 }; 166 };
167 167
168 int GioMemoryFileSnapshotCtor(struct GioMemoryFileSnapshot *self, 168 int GioMemoryFileSnapshotCtor(struct GioMemoryFileSnapshot *self,
169 char *fn); 169 const char *filename);
170 170
171 void GioMemoryFileSnapshotDtor(struct Gio *vself); 171 void GioMemoryFileSnapshotDtor(struct Gio *vself);
172 172
173 173
174 struct GioPio { 174 struct GioPio {
175 struct Gio base; 175 struct Gio base;
176 int fd; 176 int fd;
177 off_t pos; 177 off_t pos;
178 }; 178 };
179 179
(...skipping 14 matching lines...) Expand all
194 char const *fmt, 194 char const *fmt,
195 ...); 195 ...);
196 196
197 size_t gvprintf(struct Gio *gp, 197 size_t gvprintf(struct Gio *gp,
198 char const *fmt, 198 char const *fmt,
199 va_list ap); 199 va_list ap);
200 200
201 EXTERN_C_END 201 EXTERN_C_END
202 202
203 #endif /* NATIVE_CLIENT_SRC_SHARED_GIO_GIO_H_ */ 203 #endif /* NATIVE_CLIENT_SRC_SHARED_GIO_GIO_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/shared/gio/gio_mem_snapshot.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698