]> Chaos Git - corbenik/ctrulib.git/commitdiff
Add svcGetHandleInfo. (#324)
authorMrrraou <Mrrraou@users.noreply.github.com>
Sun, 18 Dec 2016 23:02:43 +0000 (00:02 +0100)
committerfincs <fincs.alt1@gmail.com>
Sun, 18 Dec 2016 23:02:43 +0000 (00:02 +0100)
libctru/include/3ds/svc.h
libctru/source/svc.s

index 32a8513c66056ef7665ffeef1b0996c7307fb3ae..7b2a5241105612e5860f9a00409d17063095bade 100644 (file)
@@ -897,6 +897,14 @@ Result svcCloseHandle(Handle handle);
  */
 Result svcDuplicateHandle(Handle* out, Handle original);
 
+/**
+ * @brief Gets a handle info.
+ * @param[out] out Pointer to output the handle info to.
+ * @param handle Handle to get the info for.
+ * @param param Parameter clarifying the handle info type.
+ */
+Result svcGetHandleInfo(s64* out, Handle handle, u32 param);
+
 /**
  * @brief Gets the system info.
  * @param[out] out Pointer to output the system info to.
@@ -966,5 +974,3 @@ Result svcContinueDebugEvent(Handle debug, u32 flags);
  * @param callback Function to execute.
  */
 Result svcBackdoor(s32 (*callback)(void));
-
-
index 4edb4d6f210a2402cab1edb10aea94ba35f8eaab..5447e5e8e899e4921b7d5db243392084f44b988e 100644 (file)
@@ -233,6 +233,14 @@ SVC_BEGIN svcGetSystemTick
        svc 0x28
        bx  lr
 
+SVC_BEGIN svcGetHandleInfo
+       str r0, [sp, #-0x4]!
+       svc 0x29
+       ldr r3, [sp], #4
+       str r1, [r3]
+       str r2, [r3,#4]
+       bx lr
+
 SVC_BEGIN svcGetSystemInfo
        str r0, [sp, #-0x4]!
        svc 0x2A